diff options
author | shishir gowda <shishirng@gluster.com> | 2011-11-17 15:12:32 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-11-18 04:26:23 -0800 |
commit | e6a3902410aaa8756e9c07302d88399fb99641c7 (patch) | |
tree | 080743317fb97988b14215fc7808287506ea6b59 /xlators/mgmt/glusterd/src/glusterd-volume-ops.c | |
parent | 88ee850e68838df34d0a57307299e07dac7d9771 (diff) |
mgmt/glusterd volume delete - Unref dict only in case of an error
Change-Id: I6edee785c69864bf42d869ed9cccb52cabc1523d
BUG: 3817
Reviewed-on: http://review.gluster.com/736
Reviewed-by: Amar Tumballi <amar@gluster.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-ops.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index 33b9c7f3e26..f36a4d52b70 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -408,7 +408,7 @@ glusterd_handle_cli_delete_volume (rpcsvc_request_t *req) out: if (cli_req.dict.dict_val) free (cli_req.dict.dict_val); //its malloced by xdr - if (dict) + if (ret && dict) dict_unref (dict); glusterd_friend_sm (); |