summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2014-09-29 08:48:40 +0530
committerVijay Bellur <vbellur@redhat.com>2014-09-29 02:24:48 -0700
commit369f59a91e2aee13a6e12ef78e7188f29a819ff7 (patch)
tree6ed15495f950184f6f123dd3ff7af107b4308060 /xlators
parentce0044ac245002da461c40e5f2014d76e31afb2a (diff)
cluster/afr: Fix inode leak
Backport of: http://review.gluster.org/8875 Change-Id: Ib000be1238d38f8d63ff25b3873bb813bf72beec BUG: 1145914 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/8876 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index b855f98ddf2..eeaceb13018 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -53,6 +53,8 @@ afr_selfheal_post_op (call_frame_t *frame, xlator_t *this, inode_t *inode,
syncbarrier_wait (&local->barrier, 1);
+ loc_wipe (&loc);
+
return 0;
}