diff options
author | vmallika <vmallika@redhat.com> | 2015-06-18 14:30:16 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-06-19 03:48:01 -0700 |
commit | 8ab6608accb62d6320d1fc1fbe651fcafd376270 (patch) | |
tree | bde22f437f1db829cdb3f8dcf773fc6135c3bcbf /xlators/features/marker | |
parent | c791765bc84b1ba62203b2b9c1e815944a39921c (diff) |
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 <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/11311
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/marker')
-rw-r--r-- | xlators/features/marker/src/marker-quota.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |