diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-06-14 23:18:18 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-14 22:38:12 -0700 |
commit | 7677c211dc08a35892cf4888d47c605fd6e0dab6 (patch) | |
tree | d1704a42542b446db5ec681147f0c861d3c84583 /xlators/features | |
parent | 5522ac20241436be6a005058b6360f4339eb678c (diff) |
features/locks: update 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')
-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 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) { |