summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handshake.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-14 00:54:22 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-14 00:47:19 -0700
commitb0003a7e789e0618656dd4214195578f53d1e84e (patch)
tree49ea5c372d6609b5781a7d1f789c3294469b1cba /xlators/mgmt/glusterd/src/glusterd-handshake.c
parent174f963c846331c6dafda169451790b6039ef3fb (diff)
mgmt/glusterd: free xdr allocations
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1186 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1186
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handshake.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index 1ea1fcef0..116ea6170 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -179,6 +179,10 @@ fail:
glusterd_submit_reply (req, &rsp, NULL, 0, NULL,
(gd_serialize_t)xdr_serialize_getspec_rsp);
+ if (args.key)
+ free (args.key);//malloced by xdr
+ if (rsp.spec)
+ free (rsp.spec);
return 0;
}