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/posix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/features/locks/src/posix.c') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 7e94c284ed1..78bf160058c 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -2471,6 +2471,7 @@ pl_forget (xlator_t *this, list) { list_del (&rw_req->list); + call_stub_destroy(rw_req->stub); GF_FREE (rw_req); } } @@ -2554,6 +2555,8 @@ pl_forget (xlator_t *this, } + pthread_mutex_destroy(&pl_inode->mutex); + GF_FREE (pl_inode); return 0; -- cgit