From 7677c211dc08a35892cf4888d47c605fd6e0dab6 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 14 Jun 2011 23:18:18 +0000 Subject: features/locks: update 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(+) (limited to 'xlators/features') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 67f026b16..c0f8b5dfe 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