diff options
author | vmallika <vmallika@redhat.com> | 2015-07-16 19:24:00 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-07-16 18:25:43 -0700 |
commit | 139eb82c2ae0bc56ca12c62b83e6fc774bc88363 (patch) | |
tree | 92d17dd3be5118ab117f580c59ad8e731d4c4f0f /xlators | |
parent | 6b7bdcb02cf39199d3720c2471121d14df64c8ab (diff) |
posix: fix mem-leak in posix xattrop
Change-Id: I1dd70f74a98c5875eb316f3c3e560047f128685b
BUG: 1243890
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/11700
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |