From df3f1d9926bf3e7a481391182aa967f0154634a3 Mon Sep 17 00:00:00 2001 From: vmallika Date: Wed, 29 Jul 2015 16:26:12 +0530 Subject: quota: fix mem leak in quota enforcer This is a backport of http://review.gluster.org/#/c/11526/ Do inode_unref on parent > Change-Id: I21d82eb8716dd73aa2dc291b3ae8506e4fb4ea8b > BUG: 1207735 > Signed-off-by: vmallika > Reviewed-on: http://review.gluster.org/11526 > Reviewed-by: Krishnan Parthasarathi > Tested-by: Gluster Build System > Tested-by: NetBSD Build System > Reviewed-by: Raghavendra G > Tested-by: Raghavendra G Change-Id: I8f103ea96e6853d48c934b791ff4d95b226e4453 BUG: 1247964 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/11793 Tested-by: Gluster Build System Reviewed-by: Raghavendra Bhat --- xlators/features/quota/src/quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index e3ed48bd8cc..dd3e8e2b624 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -837,8 +837,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: -- cgit