summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVarun Shastry <vshastry@redhat.com>2014-03-12 15:22:14 +0530
committerVijay Bellur <vbellur@redhat.com>2014-03-15 05:46:50 -0700
commit67bf41cd0a9318a26c18f033ce4d745a8c5a977e (patch)
tree38bae862c7e52c24c9958742cb04d13c38ef0eff /xlators
parente779cc8c32692112d751571e65a1fb898f500d5b (diff)
features/quota: fix the dict leak when quota is off
Change-Id: I15036da90e96b69858eac5a19bd438df3bd8cc53 BUG: 1075506 Signed-off-by: Varun Shastry <vshastry@redhat.com> Reviewed-on: http://review.gluster.org/7233 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/quota/src/quota.c4
1 files changed, 2 insertions, 2 deletions
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;