Skip to content

Commit

Permalink
DAOS-16971 cart: fix mem leak
Browse files Browse the repository at this point in the history
fix mem leak

Signed-off-by: Di Wang <[email protected]>
  • Loading branch information
wangdi1 committed Jan 31, 2025
1 parent 64adbc4 commit f7bf078
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cart/crt_rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,14 +574,14 @@ crt_rpc_priv_free(struct crt_rpc_priv *rpc_priv)
if (rpc_priv->crp_uri_free != 0)
D_FREE(rpc_priv->crp_tgt_uri);

if (rpc_priv->crp_orig_uri != NULL)
D_FREE(rpc_priv->crp_orig_uri);

D_MUTEX_DESTROY(&rpc_priv->crp_mutex);
D_SPIN_DESTROY(&rpc_priv->crp_lock);

RPC_TRACE(DB_TRACE, rpc_priv, "destroying\n");

if (rpc_priv->crp_orig_uri != NULL)
D_FREE(rpc_priv->crp_orig_uri);

D_FREE(rpc_priv);
}

Expand Down

0 comments on commit f7bf078

Please sign in to comment.