summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2015-07-16 19:24:00 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-07-18 10:35:32 -0700
commitc19cefebf85dee4c81ed7ae2ef8f050920d73b39 (patch)
treec0edbd7af91c4263f94fcbc6f28dfe27f3348523 /xlators/storage
parentfa6509014ffd0c0b920e8623c4d0a72e3bf16fb3 (diff)
posix: fix mem-leak in posix xattrop
This is a backport of http://review.gluster.org/#/c/11700/ > Change-Id: I1dd70f74a98c5875eb316f3c3e560047f128685b > BUG: 1243890 > Signed-off-by: vmallika <vmallika@redhat.com> Change-Id: Iac9ce677fc3b562114901641a28a6f019c829e34 BUG: 1243898 Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/11701 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/storage')
-rw-r--r--xlators/storage/posix/src/posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 81845f81795..a4f8d93b44b 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -4990,11 +4990,13 @@ unlock:
array = NULL;
}
- array = NULL;
-
out:
if (op_ret < 0)
filler->op_errno = op_errno;
+
+ if (array)
+ GF_FREE (array);
+
return op_ret;
}