diff options
| author | Xavier Hernandez <jahernan@redhat.com> | 2017-11-20 10:51:09 +0100 |
|---|---|---|
| committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2017-11-27 18:12:28 +0000 |
| commit | ce324cb755e82f520acc36caad8eab4fbcdd3a6f (patch) | |
| tree | 5ef44b81f66466a7110ab9fd3cee79aa22b7e69d /xlators/features/locks/src/entrylk.c | |
| parent | cccf80cade09efca5f5e56a8e971251d6eb5adfe (diff) | |
features/locks: Fix memory leaks
Backport of:
> BUG: 1515161
Change-Id: Ic1d2e17a7d14389b6734d1b88bd28c0a2907bbd6
BUG: 1517682
Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
Diffstat (limited to 'xlators/features/locks/src/entrylk.c')
| -rw-r--r-- | xlators/features/locks/src/entrylk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/locks/src/entrylk.c b/xlators/features/locks/src/entrylk.c index 4231d760cdc..8e9008b0d9a 100644 --- a/xlators/features/locks/src/entrylk.c +++ b/xlators/features/locks/src/entrylk.c @@ -784,7 +784,7 @@ pl_common_entrylk (call_frame_t *frame, xlator_t *this, break; default: - inode_unref (pinode->inode); + need_inode_unref = _gf_true; gf_log (this->name, GF_LOG_ERROR, "Unexpected case in entrylk (cmd=%d). Please file" "a bug report at http://bugs.gluster.com", cmd); @@ -960,6 +960,7 @@ pl_entrylk_client_cleanup (xlator_t *this, pl_ctx_t *ctx) __pl_entrylk_unref (l); } pthread_mutex_unlock (&pinode->mutex); + inode_unref (pinode->inode); } |
