From 2b7ae84a5feb636f0e41d0ab36c04b7f3fbce520 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 2 Jun 2015 17:58:00 +0530 Subject: features/quota: Fix ref-leak Change-Id: I0b44b70f07be441e044d9dfc5c2b64bd5b4cac18 BUG: 1207735 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/11045 Tested-by: Gluster Build System Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- xlators/features/quota/src/quota.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 6d05273026a..569b3c00aa4 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -385,6 +385,7 @@ check_ancestory (call_frame_t *frame, inode_t *inode) if (!parent) { quota_build_ancestry (cur_inode, check_ancestory_continue, frame); + inode_unref (cur_inode); return; } inode_unref (cur_inode); -- cgit