[pulseaudio-commits] src/modules
Arun Raghavan
arun at kemper.freedesktop.org
Mon Nov 28 20:47:14 PST 2011
src/modules/echo-cancel/module-echo-cancel.c | 6 ------
1 file changed, 6 deletions(-)
New commits:
commit 8fc8d3d5869feb2bbad3b648510b0bc24d3958b3
Author: Peter Meerwald <pmeerw at pmeerw.net>
Date: Mon Nov 28 16:14:16 2011 +0100
echo-cancel: Fix memory leak in test program
memory for pa_echo_canceller is allocated in init_common() a second time,
hence the allocated memory in main() is leaked
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index 1fad12a..8bf6670 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -2036,12 +2036,6 @@ int main(int argc, char* argv[]) {
goto usage;
}
- u.ec = pa_xnew0(pa_echo_canceller, 1);
- if (!u.ec) {
- pa_log("Failed to alloc echo canceller");
- goto fail;
- }
-
u.captured_file = fopen(argv[2], "r");
if (u.captured_file == NULL) {
perror ("fopen failed");
More information about the pulseaudio-commits
mailing list