ref: 6fa8563244804f153290a5f89eb31823601e0f5e
parent: 1970d5becd1cbb6f5a9322e18f8df8250a7cbba7
author: Jean-Marc Valin <[email protected]>
date: Fri Dec 4 09:35:18 EST 2015
Fixes memory leak in some CELT unit tests Reported in https://trac.xiph.org/ticket/2241
--- a/celt/tests/test_unit_dft.c
+++ b/celt/tests/test_unit_dft.c
@@ -149,7 +149,7 @@
free(in);
free(out);
- free(cfg);
+ opus_fft_free(cfg, arch);
}
int main(int argc,char ** argv)
--- a/celt/tests/test_unit_laplace.c
+++ b/celt/tests/test_unit_laplace.c
@@ -88,5 +88,6 @@
}
}
+ free(ptr);
return ret;
}
--- a/celt/tests/test_unit_mdct.c
+++ b/celt/tests/test_unit_mdct.c
@@ -179,7 +179,9 @@
free(in);
+ free(in_copy);
free(out);
+ free(window);
clt_mdct_clear(&cfg, arch);
}