mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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:
parent
75c2f4d09e
commit
8fc8d3d586
1 changed files with 0 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue