From 8ab6608accb62d6320d1fc1fbe651fcafd376270 Mon Sep 17 00:00:00 2001 From: vmallika Date: Thu, 18 Jun 2015 14:30:16 +0530 Subject: quota/marker: fix mem-leak, free contribution node When removing contribution xattr, we also need to free contribution node in memory Change-Id: I5fe97813a8f39e2f00401976046bd280f2eea54d BUG: 1207735 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/11311 Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- xlators/features/marker/src/marker-quota.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/features/marker/src/marker-quota.c') diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index c33d8a46707..7c67ec6dc7c 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -2606,6 +2606,8 @@ mq_remove_contri (xlator_t *this, loc_t *loc, inode_contribution_t *contri) } UNLOCK (&contri->lock); + QUOTA_FREE_CONTRIBUTION_NODE (contri); + ret = 0; out: -- cgit