summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-09-28 04:31:51 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-28 04:50:29 -0700
commita89ec9419758b420ce11dddac27327ec34141da6 (patch)
treef087b443f051fdf4d5d4e6a23e531a6ead1450dd /xlators/mgmt/glusterd
parent1fd7b1c4fcfd4041c2a9cb89dcc3874f70324cde (diff)
unref the dict allocated in set_volume, remove_brick
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1726 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1726
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 3f01dc5da6b..6bf1c2b5788 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -1084,6 +1084,8 @@ glusterd_op_stage_set_volume (gd1_mgmt_stage_op_req *req)
ret = 0;
out:
+ if (dict)
+ dict_unref (dict);
gf_log ("", GF_LOG_DEBUG, "Returning %d", ret);
return ret;
@@ -1350,6 +1352,8 @@ glusterd_op_stage_remove_brick (gd1_mgmt_stage_op_req *req)
}
out:
+ if (dict)
+ dict_unref (dict);
gf_log ("", GF_LOG_DEBUG, "Returning %d", ret);
return ret;
@@ -2817,6 +2821,8 @@ glusterd_op_set_volume (gd1_mgmt_stage_op_req *req)
ret = 0;
out:
+ if (dict)
+ dict_unref (dict);
gf_log ("", GF_LOG_DEBUG, "returning %d", ret);
return ret;
}
@@ -4787,6 +4793,7 @@ glusterd_op_free_ctx (glusterd_op_t op, void *ctx, gf_boolean_t ctx_free)
case GD_OP_LOG_FILENAME:
case GD_OP_LOG_ROTATE:
case GD_OP_SYNC_VOLUME:
+ case GD_OP_SET_VOLUME:
dict_unref (ctx);
break;
case GD_OP_DELETE_VOLUME: