From 5bcb4ddca3d309836dc15aa6e985c0e1fb2a0e05 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 14 Jun 2011 23:25:51 +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 dacc2b04eed..e9173785039 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -1345,6 +1345,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