summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2015-07-03 17:32:04 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-07-07 04:01:10 -0700
commit74a143100fa4b9532d37bed39504dcea9d371d18 (patch)
treef1c7f119a8b9c9bc0a048c7bedbf3a44b79d811f /xlators/features/quota
parente5f241c9f4a9adc969d13288bd823a9a9aa2c469 (diff)
quota: fix mem leak in quota enforcer
This is a backport of review.gluster.org/#/c/11526/ Do inode_unref on parent > Change-Id: I21d82eb8716dd73aa2dc291b3ae8506e4fb4ea8b > BUG: 1207735 > Signed-off-by: vmallika <vmallika@redhat.com> Change-Id: I4caeedbe8721b660df1c8502a0a42033f1d40a97 BUG: 1229282 Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/11529 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 18ad3c93d7b..5ddfaa9f0e5 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -955,8 +955,8 @@ quota_check_limit_continuation (struct list_head *parents, inode_t *inode,
list_for_each_entry (entry, parents, next) {
parent = inode_find (inode->table, entry->par);
-
quota_check_limit (frame, parent, this, NULL, NULL);
+ inode_unref (parent);
}
out: