summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Bezdicka <lukas.bezdicka@gooddata.com>2014-01-29 11:20:08 +0100
committerVijay Bellur <vbellur@redhat.com>2014-02-07 08:53:38 -0800
commit358b88087051d3b2534446c62f6bbac472e9198b (patch)
tree0c26bfca9d1a892e87be08230f0a1ddec065e5f2
parent095f62a963e9768a17e7b7382967f2e30f3879a8 (diff)
libxlator: fix memleak in cluster_markerxtime_cbk and cluster_markeruuid_cbk
Change-Id: Ide3574bf9f661b077f707990d47821feda18b1a3 BUG: 841617 Reviewed-on: http://review.gluster.org/6872 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--xlators/lib/src/libxlator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/lib/src/libxlator.c b/xlators/lib/src/libxlator.c
index 63e9bcf..4e680c5 100644
--- a/xlators/lib/src/libxlator.c
+++ b/xlators/lib/src/libxlator.c
@@ -233,6 +233,7 @@ out:
frame->local = local->xl_local;
local->xl_specf_unwind (frame, op_ret,
op_errno, dict, xdata);
+ GF_FREE (local);
} else if (need_unwind) {
STACK_UNWIND_STRICT (getxattr, frame, op_ret, op_errno,
dict, xdata);
@@ -344,6 +345,7 @@ unlock:
frame->local = local->xl_local;
local->xl_specf_unwind (frame, op_ret,
op_errno, dict, xdata);
+ GF_FREE (local);
return 0;
} else if (need_unwind){
STACK_UNWIND_STRICT (getxattr, frame, op_ret, op_errno,