Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-07-20 00:20:02 +0400
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-07-20 00:20:02 +0400
commit74bff0a77bc12d123e2e72cb979a70e0651924fc (patch)
treecc35ff8ee46913a2082660af18247434106d8544
parent80153e95783c0c868d6910f500822fdcb0723827 (diff)
Fixed a memory leak in the echo canceller (forgot to free() some pointers)
-rw-r--r--libspeex/mdf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libspeex/mdf.c b/libspeex/mdf.c
index d97e678..456ab84 100644
--- a/libspeex/mdf.c
+++ b/libspeex/mdf.c
@@ -617,6 +617,11 @@ EXPORT void speex_echo_state_destroy(SpeexEchoState *st)
#ifdef FIXED_POINT
speex_free(st->wtmp2);
#endif
+ speex_free(st->memX);
+ speex_free(st->memD);
+ speex_free(st->memE);
+ speex_free(st->notch_mem);
+
speex_free(st->play_buf);
speex_free(st);