summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-11-30 16:39:32 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-12-02 07:23:37 +0000
commit0566ecc878adc5a5aba2c3210485087a9a67da59 (patch)
treecacd0ea858de35f8edf8c127936117f86b27d0c6
parent98a672f5046620f5fc751ea803e0dfa0bf4e18d3 (diff)
downloadglusterfs-0566ecc878adc5a5aba2c3210485087a9a67da59.tar.gz
glusterfs-0566ecc878adc5a5aba2c3210485087a9a67da59.tar.xz
glusterfs-0566ecc878adc5a5aba2c3210485087a9a67da59.zip
cli : Memeory leak fix reported by ASAN
This patch fixes memory leak in cli-rpc-ops.c. All leaks are happening in gf_cli_remove_brick_cbk. SUMMARY: AddressSanitizer: 2944 byte(s) leaked in 22 allocation(s). updates: bz#1633930 Change-Id: I1e58d538eb9135f1aadcdb54d10b72f55e8a53d1 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
-rw-r--r--cli/src/cli-rpc-ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index e7cca8d2e0..13ff21a6c1 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -3042,6 +3042,9 @@ out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+ if (rsp_dict)
+ dict_unref(rsp_dict);
+
return ret;
}