diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-06-11 04:56:43 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-14 04:32:10 -0700 |
commit | 4533d3789865bdb0f8c6b923ed340293bc20f5ef (patch) | |
tree | 2f34f58bc32d3e912dab0462f64e8bd803865b1f /xlators | |
parent | 4437568045175027a18abbd930b12b880b28a6a7 (diff) |
free sh_priv->loops 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')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-algorithm.c | 2 |
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 eefd1ff7bb4..8261858d094 100644 --- a/xlators/cluster/afr/src/afr-self-heal-algorithm.c +++ b/xlators/cluster/afr/src/afr-self-heal-algorithm.c @@ -426,6 +426,8 @@ sh_diff_private_cleanup (call_frame_t *frame, xlator_t *this) if (sh_priv->loops[i]->checksum) FREE (sh_priv->loops[i]->checksum); + + FREE (sh_priv->loops[i]); } } |