From 67bf41cd0a9318a26c18f033ce4d745a8c5a977e Mon Sep 17 00:00:00 2001 From: Varun Shastry Date: Wed, 12 Mar 2014 15:22:14 +0530 Subject: features/quota: fix the dict leak when quota is off Change-Id: I15036da90e96b69858eac5a19bd438df3bd8cc53 BUG: 1075506 Signed-off-by: Varun Shastry Reviewed-on: http://review.gluster.org/7233 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index fb838aa04e4..87384b52088 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -1075,12 +1075,12 @@ quota_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, priv = this->private; + WIND_IF_QUOTAOFF (priv->is_quota_on, off); + xattr_req = xattr_req ? dict_ref(xattr_req) : dict_new(); if (!xattr_req) goto err; - WIND_IF_QUOTAOFF (priv->is_quota_on, off); - local = quota_local_new (); if (local == NULL) { goto err; -- cgit