mgmt/glusterd: Cleanup memory leaks in handshake
Thanks to bingxuan.zhang at nokia dot com for the report and patch. Change-Id: I994f82493fec7827f31592340af5bda83322f878 BUG: 1377584 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/15612 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
This commit is contained in:
parent
b77cf4d021
commit
f0c588e5e6
@ -476,6 +476,10 @@ out:
|
||||
peerinfo->max_op_version = client_max_op_version;
|
||||
peerinfo->min_op_version = client_min_op_version;
|
||||
|
||||
if (dict)
|
||||
dict_unref (dict);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -929,6 +933,8 @@ fail:
|
||||
(xdrproc_t)xdr_gf_getspec_rsp);
|
||||
free (args.key);//malloced by xdr
|
||||
free (rsp.spec);
|
||||
if (args.xdata.xdata_val)
|
||||
free (args.xdata.xdata_val);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user