summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-06-02 17:58:00 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-06-03 21:42:26 -0700
commit2b7ae84a5feb636f0e41d0ab36c04b7f3fbce520 (patch)
tree7f9fbfe46a29290d355136982d4e6596115a712b
parentb8b59fea7822f9ab1e10d7a3f730354fe82a6097 (diff)
features/quota: Fix ref-leak
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>
-rw-r--r--xlators/features/quota/src/quota.c1
1 files changed, 1 insertions, 0 deletions
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);