diff options
author | Anand Avati <avati@redhat.com> | 2013-04-26 01:23:13 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-05-16 22:57:25 -0700 |
commit | b62e5ca7ed3b4ddb9b07dc16da1e295a4c28e01f (patch) | |
tree | 98d4d1547c970594c6795aeb8f7d01675e7e0fed /xlators/features/locks | |
parent | 2acc8c1f04d0376bedf36f1f746e542422344fa6 (diff) |
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 <avati@redhat.com>
Reviewed-on: http://review.gluster.org/4991
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features/locks')
-rw-r--r-- | xlators/features/locks/src/entrylk.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |