summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-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 450c6b5..340d71b 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)