diff options
author | Rajesh Joseph <rjoseph@redhat.com> | 2016-09-23 13:57:55 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2016-11-28 00:49:03 -0800 |
commit | 2e859ee88f285a098a5c02bd2bdc0cd4bbd44d56 (patch) | |
tree | 62ee2a679c1b0be41fa8a0384e90865df5ca9cbb | |
parent | a07ddd8fcc8dcdcf7ccfa61211d258f13b9f9229 (diff) |
gfapi: Fix memory leak in glfs-mgmt
dictionary was not freed after serialization
Change-Id: I495f2f823b0d53a0d858876bde41fde5f0705113
BUG: 1397177
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-on: http://review.gluster.org/15895
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-by: Poornima G <pgurusid@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r-- | api/src/glfs-mgmt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c index 4619061816c..1a6eb4b6981 100644 --- a/api/src/glfs-mgmt.c +++ b/api/src/glfs-mgmt.c @@ -700,6 +700,9 @@ glfs_volfile_fetch (struct glfs *fs) GF_HNDSK_GETSPEC, glfs_mgmt_getspec_cbk, (xdrproc_t)xdr_gf_getspec_req); out: + if (dict) + dict_unref (dict); + return ret; } |