From c913a6e6fcd9ebd962955ba5d51f518b2875eba3 Mon Sep 17 00:00:00 2001 From: Xavier Hernandez Date: Mon, 20 Nov 2017 10:51:09 +0100 Subject: features/locks: Fix memory leaks Change-Id: Ic1d2e17a7d14389b6734d1b88bd28c0a2907bbd6 BUG: 1515161 Signed-off-by: Xavier Hernandez --- xlators/features/locks/src/clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/locks/src/clear.c') diff --git a/xlators/features/locks/src/clear.c b/xlators/features/locks/src/clear.c index f6897333ce7..a76d6beacb1 100644 --- a/xlators/features/locks/src/clear.c +++ b/xlators/features/locks/src/clear.c @@ -183,7 +183,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); -- cgit