From a89ec9419758b420ce11dddac27327ec34141da6 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 28 Sep 2010 04:31:51 +0000 Subject: unref the dict allocated in set_volume, remove_brick Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1726 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1726 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c') 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: -- cgit