summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/locks/src/inodelk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/locks/src/inodelk.c b/xlators/features/locks/src/inodelk.c
index dd6c54bddfc..1ec5b00417f 100644
--- a/xlators/features/locks/src/inodelk.c
+++ b/xlators/features/locks/src/inodelk.c
@@ -281,11 +281,12 @@ grant_blocked_inode_locks (xlator_t *this, pl_inode_t *pl_inode, pl_inode_lock_t
{
if (list_empty (&dom->blocked_inodelks)) {
- return;
+ goto out;
}
__grant_blocked_inode_locks (this, pl_inode, dom);
+out:
__destroy_inode_lock (lock);
}