diff options
author | Xavier Hernandez <jahernan@redhat.com> | 2017-11-20 10:51:09 +0100 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2017-11-28 14:56:26 +0000 |
commit | 4e33ea6e469f8812813f5616dee2e9628e2fc474 (patch) | |
tree | ed59b3bac16306d0503e613e1b4aaaee6747d785 /xlators/features/locks/src/clear.c | |
parent | 2475bfb4d25b20c20bc806771857a2de443835a2 (diff) |
features/locks: Fix memory leaks
Backport of:
> BUG: 1515161
Change-Id: Ic1d2e17a7d14389b6734d1b88bd28c0a2907bbd6
BUG: 1517692
Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
Diffstat (limited to 'xlators/features/locks/src/clear.c')
-rw-r--r-- | xlators/features/locks/src/clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/locks/src/clear.c b/xlators/features/locks/src/clear.c index d7c210f24a5..22c03b5b7bf 100644 --- a/xlators/features/locks/src/clear.c +++ b/xlators/features/locks/src/clear.c @@ -184,7 +184,7 @@ clrlk_clear_posixlk (xlator_t *this, pl_inode_t *pl_inode, clrlk_args *args, } else { gcount++; } - GF_FREE (plock); + __destroy_lock(plock); } } pthread_mutex_unlock (&pl_inode->mutex); |