diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2017-04-20 02:13:27 -0400 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-04-26 14:57:01 +0000 |
commit | 9e57016757f1fb431dee8196c781b5d15b51cd43 (patch) | |
tree | 01922920860a2cd202c273e443f54705eb167c25 | |
parent | 25f0a7b153b30b2c0e8278b0ce11d1199c3fb006 (diff) |
api: free the xattr data after using in glfs_volfile_fetch
Change-Id: I89a7df93039e367301fd70df722c13f1d8b3484b
Signed-off-by: Kinglong Mee <mijinlong@open-fs.com>
Reviewed-on: https://review.gluster.org/17091
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Poornima G <pgurusid@redhat.com>
Tested-by: Poornima G <pgurusid@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
-rw-r--r-- | api/src/glfs-mgmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c index b2728477ef7..1726dac6ce4 100644 --- a/api/src/glfs-mgmt.c +++ b/api/src/glfs-mgmt.c @@ -766,6 +766,8 @@ glfs_volfile_fetch (struct glfs *fs) GF_HNDSK_GETSPEC, glfs_mgmt_getspec_cbk, (xdrproc_t)xdr_gf_getspec_req); out: + if (req.xdata.xdata_val) + GF_FREE(req.xdata.xdata_val); if (dict) dict_unref (dict); |