summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-algorithm.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-07-22 01:25:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-22 01:55:54 -0700
commit5601c137674b4dabd39b1cf26a36327bfbc707a6 (patch)
tree179ef547b16a559821538c98f786ba14e06c7b65 /xlators/cluster/afr/src/afr-self-heal-algorithm.c
parentc907de75c8f957700ebe52dea980bda5d551f438 (diff)
free sh_priv->loops[i] in afr-self-heal-algorithm.c to avoid memory leak
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 992 (memory leak in afr_sh_algo_diff) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=992
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-algorithm.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-algorithm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-algorithm.c b/xlators/cluster/afr/src/afr-self-heal-algorithm.c
index ef9d4026e..daac0ce47 100644
--- a/xlators/cluster/afr/src/afr-self-heal-algorithm.c
+++ b/xlators/cluster/afr/src/afr-self-heal-algorithm.c
@@ -427,6 +427,8 @@ sh_diff_private_cleanup (call_frame_t *frame, xlator_t *this)
if (sh_priv->loops[i]->checksum)
GF_FREE (sh_priv->loops[i]->checksum);
+
+ GF_FREE (sh_priv->loops[i]);
}
}