From 7b1beca0a3b60a8b9347a3122d77aea081ccb773 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Fri, 17 Apr 2009 05:42:23 -0700 Subject: Fix two memory leaks in afr self heal code. Signed-off-by: Anand V. Avati --- xlators/cluster/afr/src/afr-self-heal-common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index b74035be8..be75a6261 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -177,6 +177,8 @@ afr_sh_build_pending_matrix (afr_private_t *priv, } } } + + FREE (ignorant_subvols); } @@ -504,6 +506,8 @@ afr_sh_mark_sources (afr_self_heal_t *sh, int child_count, } out: + FREE (characters); + return nsources; } -- cgit