summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarun Shastry <vshastry@redhat.com>2014-06-18 17:55:54 +0530
committerNiels de Vos <ndevos@redhat.com>2014-06-23 02:53:55 -0700
commite82b527a09019109a07ea3e4280a1e74d9802ae7 (patch)
tree04e587139cd7c66b9fcec154ee6b8bfa7730cdc2
parent5888a89fa8950be38ed3c5b000a37013f6656031 (diff)
features/quota: Fix dict leak
Change-Id: Id4542d1629175cce5fec5ab8f9a5899eec48e2eb BUG: 1110777 Signed-off-by: Varun Shastry <vshastry@redhat.com> Reviewed-on: http://review.gluster.org/8132 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
-rw-r--r--xlators/features/quota/src/quota.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 87384b52088..b077c6d8395 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -702,6 +702,9 @@ quota_validate (call_frame_t *frame, inode_t *inode, xlator_t *this,
ret = 0;
err:
+ if (xdata)
+ dict_unref (xdata);
+
return ret;
}