summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Bezdicka <lukas.bezdicka@gooddata.com>2014-01-29 11:20:08 +0100
committerKaleb KEITHLEY <kkeithle@redhat.com>2014-02-20 10:05:59 -0800
commite8fca12ee9cc51ac8a4265454753a3c27dae93f8 (patch)
tree0f748d6d13b9ca93ba4385f85492884861fafa8d
parent945c6de4e6c3f55ab05bebf84868d6183b44260f (diff)
libxlator: fix memleak in cluster_markerxtime_cbk and cluster_markeruuid_cbk
Change-Id: Ide3574bf9f661b077f707990d47821feda18b1a3 BUG: 841617 Reviewed-on: http://review.gluster.org/6873 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.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 624a929d0..299eddcaa 100644
--- a/xlators/lib/src/libxlator.c
+++ b/xlators/lib/src/libxlator.c
@@ -178,6 +178,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);
@@ -289,6 +290,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,