summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-04-20 23:23:55 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-23 06:55:26 -0700
commit838317e199c6cc11ff5e7094552537f03a8f6313 (patch)
tree90a6a27d8b15cb4e6b199cb7dc0d7edc59f92113 /xlators/cluster
parentba9be029652fae1e024b14b5456d87260a18fb77 (diff)
cluster/afr,dht: Fix memleak after syncop_readlink
Change-Id: Ia71c14c2c2709c541075748c9011437e0d8cac4b BUG: 1213542 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/10305 Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: N Balachandran <nbalacha@redhat.com> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-entry.c1
-rw-r--r--xlators/cluster/dht/src/dht-rebalance.c1
2 files changed, 2 insertions, 0 deletions
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);