From bc743c012aca8b5854baf1b71a9ec9591c378645 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 This is a backport of http://review.gluster.org/#/c/11045 > 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 > Signed-off-by: vmallika Change-Id: Id740d74fb5cf7a9b23027dbbb0a9f42616dcf2fc BUG: 1229282 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/11124 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/quota') 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