From cb49857a7bc2f478c32d87a65605d87b2a8a0a0d Mon Sep 17 00:00:00 2001
From: Pranith Kumar K <pkarampu@redhat.com>
Date: Tue, 2 Jun 2015 17:58:00 +0530
Subject: [PATCH 20/57] 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 <pkarampu@redhat.com>
> Reviewed-on: http://review.gluster.org/11045
> Tested-by: Gluster Build System <jenkins@build.gluster.com>
> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
> Tested-by: Raghavendra G <rgowdapp@redhat.com>
> Signed-off-by: vmallika <vmallika@redhat.com>
Change-Id: I77cfcf978fdbcfdba912349eb02ed0210b0861e9
BUG: 1224177
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/50223
Reviewed-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
Tested-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
---
xlators/features/quota/src/quota.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 6d05273..569b3c0 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);
--
1.7.1