From e1f675cfd0f5b601c332b17333149d6c760bfd89 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 20 Apr 2015 23:23:55 +0530 Subject: cluster/afr,dht: Fix memleak after syncop_readlink Backport of http://review.gluster.org/10305 BUG: 1216302 Change-Id: Icb0f2d6bbff806e1c5827fabcbf46b9b7983491f Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/10441 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-entry.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/cluster/afr/src/afr-self-heal-entry.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c index ab0d98bd014..cb3648c07bd 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -156,6 +156,7 @@ afr_selfheal_recreate_entry (xlator_t *this, int dst, int source, inode_t *dir, out: if (xdata) dict_unref (xdata); + GF_FREE (linkname); loc_wipe (&loc); loc_wipe (&srcloc); return ret; -- cgit