summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawal@redhat.com>2019-01-21 17:53:12 +0530
committerAmar Tumballi <amarts@redhat.com>2019-01-22 05:12:50 +0000
commit4deeab02e3d15bd266f24d0f7b28f0e5401fa950 (patch)
treef3d0f14624c223b591c8d0a3a84bac23ad71e4aa /xlators/mgmt
parent2a8a66d58ad7ad28d32de42bd3423d7aa3917e3b (diff)
glusterd: Avoid dict_leak in __glusterd_handle_cli_uuid_get function
Change-Id: Iefe08b136044495f6fa2b092c9e8c833efee1400 fixes: bz#1667905 Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 5d89aa0f46b..ab57c199954 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1816,6 +1816,8 @@ out:
glusterd_to_cli(req, &rsp, NULL, 0, NULL, (xdrproc_t)xdr_gf_cli_rsp, dict);
+ if (rsp_dict)
+ dict_unref(rsp_dict);
GF_FREE(rsp.dict.dict_val);
return 0;