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
This commit is contained in:
Peter Meerwald 2011-11-28 16:14:16 +01:00 committed by Arun Raghavan
parent 75c2f4d09e
commit 8fc8d3d586

View file

@ -2036,12 +2036,6 @@ int main(int argc, char* argv[]) {
goto usage; 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"); u.captured_file = fopen(argv[2], "r");
if (u.captured_file == NULL) { if (u.captured_file == NULL) {
perror ("fopen failed"); perror ("fopen failed");