diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2015-12-04 22:35:18 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2015-12-04 22:35:18 +0300 |
commit | 6fa8563244804f153290a5f89eb31823601e0f5e (patch) | |
tree | d99fd3ca6af93d97b0274137ff30090fb4a31e8b /celt | |
parent | 1970d5becd1cbb6f5a9322e18f8df8250a7cbba7 (diff) |
Fixes memory leak in some CELT unit tests
Reported in https://trac.xiph.org/ticket/2241
Diffstat (limited to 'celt')
-rw-r--r-- | celt/tests/test_unit_dft.c | 2 | ||||
-rw-r--r-- | celt/tests/test_unit_laplace.c | 1 | ||||
-rw-r--r-- | celt/tests/test_unit_mdct.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/celt/tests/test_unit_dft.c b/celt/tests/test_unit_dft.c index 484dc57e..6166eb0e 100644 --- a/celt/tests/test_unit_dft.c +++ b/celt/tests/test_unit_dft.c @@ -149,7 +149,7 @@ void test1d(int nfft,int isinverse,int arch) free(in); free(out); - free(cfg); + opus_fft_free(cfg, arch); } int main(int argc,char ** argv) diff --git a/celt/tests/test_unit_laplace.c b/celt/tests/test_unit_laplace.c index b0f59359..22951e29 100644 --- a/celt/tests/test_unit_laplace.c +++ b/celt/tests/test_unit_laplace.c @@ -88,5 +88,6 @@ int main(void) } } + free(ptr); return ret; } diff --git a/celt/tests/test_unit_mdct.c b/celt/tests/test_unit_mdct.c index 9e0ac9f3..8dbb9caa 100644 --- a/celt/tests/test_unit_mdct.c +++ b/celt/tests/test_unit_mdct.c @@ -179,7 +179,9 @@ void test1d(int nfft,int isinverse,int arch) free(in); + free(in_copy); free(out); + free(window); clt_mdct_clear(&cfg, arch); } |