From 8680261cbb7cacdc565feb578d6afd3fac50cec4 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 16 Jun 2016 12:03:19 +0530 Subject: storage/posix: fix inode leaks Change-Id: Ibd221ba62af4db17bea5c52d37f5c0ba30b60a7d BUG: 1344885 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/14739 Smoke: Gluster Build System Reviewed-by: N Balachandran CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Krutika Dhananjay NetBSD-regression: NetBSD Build System --- xlators/storage/posix/src/posix-handle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage/posix/src/posix-handle.c') diff --git a/xlators/storage/posix/src/posix-handle.c b/xlators/storage/posix/src/posix-handle.c index 8e561e4a76f..ddafb0d9b04 100644 --- a/xlators/storage/posix/src/posix-handle.c +++ b/xlators/storage/posix/src/posix-handle.c @@ -989,6 +989,8 @@ posix_create_link_if_gfid_exists (xlator_t *this, uuid_t gfid, char *real_path, } unlock: UNLOCK (&inode->lock); + + inode_unref (inode); } return ret; -- cgit