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:
parent
98a672f504
commit
0566ecc878
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user