summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
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-11 03:52:37 -0700
commitbc743c012aca8b5854baf1b71a9ec9591c378645 (patch)
tree0fdcdd050dee347fc346ebcfb60a188975c04361 /xlators/features/quota
parent3f63ace15d524490e23c82f920c4c83bc6d95622 (diff)
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: Id740d74fb5cf7a9b23027dbbb0a9f42616dcf2fc BUG: 1229282 Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/11124 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/quota')
-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 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);