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-12 11:06:18 -0700
commit0ddd69a60e49f1335ed29a8225e31d24c836083a (patch)
tree9d6706fbc39cb6315cc6100f1ecd877b3e0c9787 /xlators
parent61f071e15572b12d12cf9764cac6456fc2df5ff3 (diff)
features/quota: fix the dict leak when quota is off
Change-Id: Iafe0c5104e38a1e34de1f2c2a19682178eb60e11 BUG: 1075506 Signed-off-by: Varun Shastry <vshastry@redhat.com> Reviewed-on: http://review.gluster.org/7227 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 bb5dc7aba..4beaae341 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;