From b62e5ca7ed3b4ddb9b07dc16da1e295a4c28e01f Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 26 Apr 2013 01:23:13 -0700 Subject: locks: fix leaking entrylk lock structure When entrylk lock requests are blocked and granted aysnchronously, the entrylk lock structure was getting leaked. Change-Id: Ie3f29f550730189f27745d991b029e50c63e63da BUG: 962350 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/4991 Reviewed-by: Krishnan Parthasarathi Reviewed-by: Pranith Kumar Karampuri Tested-by: Gluster Build System --- xlators/features/locks/src/entrylk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/features/locks') diff --git a/xlators/features/locks/src/entrylk.c b/xlators/features/locks/src/entrylk.c index 738b43be2ad..d934a8b94e1 100644 --- a/xlators/features/locks/src/entrylk.c +++ b/xlators/features/locks/src/entrylk.c @@ -520,6 +520,8 @@ grant_blocked_entry_locks (xlator_t *this, pl_inode_t *pl_inode, STACK_UNWIND_STRICT (entrylk, lock->frame, 0, 0, NULL); + GF_FREE ((char *)lock->basename); + GF_FREE (lock); } GF_FREE ((char *)unlocked->basename); -- cgit