Blob Blame History Raw
From 542bc8e5dc68a78802e212c53e198ee665a84319 Mon Sep 17 00:00:00 2001
From: vmallika <vmallika@redhat.com>
Date: Fri, 3 Jul 2015 17:32:04 +0530
Subject: [PATCH 208/212] 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: I534b2830357a0c79365cde70822c6863cc6c2ee3
BUG: 1224177
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/52305
Reviewed-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
Tested-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
---
 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 3212cb0..df0572f 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:
-- 
1.7.1