diff options
author | vmallika <vmallika@redhat.com> | 2015-07-29 16:26:12 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-08-18 03:39:05 -0700 |
commit | df3f1d9926bf3e7a481391182aa967f0154634a3 (patch) | |
tree | 6ff8f829a030b32c9d752aedc78e77411a82977b | |
parent | a17257727ce00b25ea88800c0dd54deec4d999ba (diff) |
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 <vmallika@redhat.com>
> Reviewed-on: http://review.gluster.org/11526
> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
> 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>
Change-Id: I8f103ea96e6853d48c934b791ff4d95b226e4453
BUG: 1247964
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/11793
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r-- | xlators/features/quota/src/quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |