From 4ba661f5989db0148c7c1f4631645f932a99fe56 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 14 Jun 2011 12:31:07 +0000 Subject: features/locks:update the refcount while releasing a lock Signed-off-by: Raghavendra Bhat Signed-off-by: Anand Avati BUG: 3025 (open lock and close leads to memleak) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3025 --- xlators/features/locks/src/posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 67f026b1..c0f8b5df 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) { -- cgit