From 4e33ea6e469f8812813f5616dee2e9628e2fc474 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 Backport of: > BUG: 1515161 Change-Id: Ic1d2e17a7d14389b6734d1b88bd28c0a2907bbd6 BUG: 1517692 Signed-off-by: Xavier Hernandez --- xlators/features/locks/src/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/locks/src/common.c') diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 4b63c43057f..7311126a5dd 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -438,6 +438,7 @@ pl_inode_get (xlator_t *this, inode_t *inode) ret = __inode_ctx_put (inode, this, (uint64_t)(long)(pl_inode)); if (ret) { + pthread_mutex_destroy (&pl_inode->mutex); GF_FREE (pl_inode); pl_inode = NULL; goto unlock; -- cgit