summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;
}