diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-06-14 12:31:07 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-14 22:37:57 -0700 |
commit | 4ba661f5989db0148c7c1f4631645f932a99fe56 (patch) | |
tree | 09bc918cfead3b5369fe9af6d7d002f9b29d8bcc /xlators/features/locks/src | |
parent | 9e59ce6d30f4ffd3dc7fb88c29fbd0ea79b9de28 (diff) |
features/locks:update the refcount while releasing a lock
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 3025 (open lock and close leads to memleak)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3025
Diffstat (limited to 'xlators/features/locks/src')
-rw-r--r-- | xlators/features/locks/src/posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 67f026b1627..c0f8b5dfe07 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -1276,6 +1276,7 @@ pl_release (xlator_t *this, fd_t *fd) "Releasing all locks with fd %p", fd); delete_locks_of_fd (this, pl_inode, fd); + pl_update_refkeeper (this, fd->inode); ret = fd_ctx_del (fd, this, &tmp); if (ret) { |