diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2019-02-19 14:07:43 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-02-22 03:45:34 +0000 |
commit | fe67a230483eb3f379d65f166fd239086bd095a9 (patch) | |
tree | 0e8f01083cdace393600d25d7c583dabaea85f97 /xlators | |
parent | 15423e14f16dd1a15ee5e5cbbdbdd370e57ed59f (diff) |
glusterd: fix get-state leak
Updates: bz#1193929
Change-Id: I95897fd4d3102b4fa2b8b2864116b1bf24491cf9
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index f754b52e6fe..81074f71909 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -5609,6 +5609,8 @@ glusterd_get_state(rpcsvc_request_t *req, dict_t *dict) "fetch the value of all volume options " "for volume %s", volinfo->volname); + if (vol_all_opts) + dict_unref(vol_all_opts); continue; } |