summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c2
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 ();