summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-04-17 05:42:23 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-17 18:14:39 +0530
commit7b1beca0a3b60a8b9347a3122d77aea081ccb773 (patch)
tree581a8b7163fbebc8f0ab0e83499f061c37b444c1
parent98a872df828aa2786c7bf595d430ef64351f4192 (diff)
Fix two memory leaks in afr self heal code.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c4
1 files changed, 4 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 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;
}