From 52bf8623fd5b0f1223ef2b413e6a39ac72555a45 Mon Sep 17 00:00:00 2001 From: Di Wang Date: Tue, 20 Feb 2024 04:22:46 +0000 Subject: [PATCH] DAOS-15056 rebuild: fix typo address review from wangshilong Features: rebuild Required-githooks: true Signed-off-by: Di Wang --- src/rebuild/srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebuild/srv.c b/src/rebuild/srv.c index 4d2c0d4c8b0..554ad0c1535 100644 --- a/src/rebuild/srv.c +++ b/src/rebuild/srv.c @@ -2523,11 +2523,11 @@ rebuild_tgt_prepare(crt_rpc_t *rpc, struct rebuild_tgt_pool_tracker **p_rpt) out: if (rc) { if (rpt) { - rpt_put(rpt); if (!d_list_empty(&rpt->rt_list)) { d_list_del_init(&rpt->rt_list); rpt_put(rpt); } + rpt_put(rpt); } ds_pool_put(pool); }