summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 450c6b5d9..340d71bcb 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -1074,6 +1074,8 @@ posix_unlink (call_frame_t *frame, xlator_t *this,
close (fd);
else
inode_ctx_put (loc->inode, this, (uint64_t) fd);
+
+ fd = -1;
}
fail:
if (fd != -1)