From 139eb82c2ae0bc56ca12c62b83e6fc774bc88363 Mon Sep 17 00:00:00 2001 From: vmallika Date: Thu, 16 Jul 2015 19:24:00 +0530 Subject: posix: fix mem-leak in posix xattrop Change-Id: I1dd70f74a98c5875eb316f3c3e560047f128685b BUG: 1243890 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/11700 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/storage/posix/src/posix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/storage/posix') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 4400780510b..8ed24644f5a 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4985,11 +4985,13 @@ unlock: array = NULL; } - array = NULL; - out: if (op_ret < 0) filler->op_errno = op_errno; + + if (array) + GF_FREE (array); + return op_ret; } -- cgit