summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-04-15 02:55:46 +0000
committerAnand Avati <avati@gluster.com>2011-04-15 03:58:47 -0700
commitb5d944f911f1638a8063235443410de36df6f2fd (patch)
tree579455ce7786fb015374eed4544a57f328b5d8df /xlators/mgmt/glusterd/src/glusterd-handler.c
parentb565cf8bfc75e6f6c85a47bc8a06737cd6e79fae (diff)
mgmt/glusterd: Memory leak and message cleanup
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2764 (Cleanup memory leaks seen in quota and gsync code paths) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2764
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-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 f4f2e0a2bef..42909136a8c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1874,6 +1874,8 @@ out:
if (!lock_fail)
(void) glusterd_opinfo_unlock ();
}
+ if (cli_req.volname)
+ free (cli_req.volname); //malloced by xdr
return ret;
}