From 5a5a7f939c830d8e4a542c8fff00138b83ddd4fc Mon Sep 17 00:00:00 2001 From: Pranith K Date: Thu, 30 Sep 2010 08:46:03 +0000 Subject: mgmt/glusterd: memory leak fixes Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1726 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1726 --- xlators/mgmt/glusterd/src/glusterd-handler.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 439facef..58d58f62 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -1722,12 +1722,17 @@ glusterd_handle_set_volume (rpcsvc_request_t *req) "failed to " "unserialize req-buffer to dictionary"); goto out; + } else { + dict->extra_stdfree = cli_req.dict.dict_val; } } ret = glusterd_set_volume (req, dict); out: + if (cli_req.volname) + free (cli_req.volname);//malloced by xdr + return ret; } -- cgit