summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/posix.c
diff options
context:
space:
mode:
authorXavier Hernandez <jahernan@redhat.com>2017-11-20 10:51:09 +0100
committerShyamsundar Ranganathan <srangana@redhat.com>2017-11-28 14:56:26 +0000
commit4e33ea6e469f8812813f5616dee2e9628e2fc474 (patch)
treeed59b3bac16306d0503e613e1b4aaaee6747d785 /xlators/features/locks/src/posix.c
parent2475bfb4d25b20c20bc806771857a2de443835a2 (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/posix.c')
-rw-r--r--xlators/features/locks/src/posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index ff9a3da1a2e..a15822742a6 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -2472,6 +2472,7 @@ pl_forget (xlator_t *this,
list) {
list_del (&rw_req->list);
+ call_stub_destroy(rw_req->stub);
GF_FREE (rw_req);
}
}
@@ -2555,6 +2556,8 @@ pl_forget (xlator_t *this,
}
+ pthread_mutex_destroy(&pl_inode->mutex);
+
GF_FREE (pl_inode);
return 0;