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>
This commit is contained in:
Pranith Kumar K 2015-06-02 17:58:00 +05:30 committed by Raghavendra G
parent b8b59fea78
commit 2b7ae84a5f

View File

@ -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);