From 838317e199c6cc11ff5e7094552537f03a8f6313 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 Change-Id: Ia71c14c2c2709c541075748c9011437e0d8cac4b BUG: 1213542 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/10305 Reviewed-by: Ravishankar N Reviewed-by: N Balachandran Reviewed-by: Krutika Dhananjay Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-entry.c | 1 + xlators/cluster/dht/src/dht-rebalance.c | 1 + 2 files changed, 2 insertions(+) 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; diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 98d9b58385d..206628208f5 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -866,6 +866,7 @@ done: } out: + GF_FREE (link); if (dict) dict_unref (dict); -- cgit