summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-09-17 05:47:20 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-17 06:23:53 -0700
commit91174380ae00a108512a4230f4cd2c1901d4bb94 (patch)
treeb23723963b6e7ad44bcac564d7c9a7fc589822e7 /xlators
parent3d7356c0c205898bd4d515300c563be9ce113ec3 (diff)
free the dict_val to avoid memory leak
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1621 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1621
Diffstat (limited to 'xlators')
-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 036969a816c..0d17f5131e1 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2168,6 +2168,8 @@ glusterd_op_commit_send_resp (rpcsvc_request_t *req,
out:
if (rsp_dict)
dict_unref (rsp_dict);
+ if (rsp.dict.dict_val)
+ GF_FREE (rsp.dict.dict_val);
return ret;
}