summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/locks/src/posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index 76c7c4ee7ce..36dc32eacc0 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -2119,7 +2119,7 @@ pl_release (xlator_t *this, fd_t *fd)
ret = inode_ctx_get (fd->inode, this, &tmp_pl_inode);
if (ret != 0)
- goto out;
+ goto clean;
pl_inode = (pl_inode_t *)(long)tmp_pl_inode;
@@ -2131,6 +2131,7 @@ pl_release (xlator_t *this, fd_t *fd)
delete_locks_of_fd (this, pl_inode, fd);
pl_update_refkeeper (this, fd->inode);
+clean:
ret = fd_ctx_del (fd, this, &tmp);
if (ret) {
gf_log (this->name, GF_LOG_DEBUG,