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>
This commit is contained in:
Sunny Kumar 2018-11-30 16:39:32 +05:30 committed by Atin Mukherjee
parent 98a672f504
commit 0566ecc878

View File

@ -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;
}