Commit 6fa85632 authored by Jean-Marc Valin's avatar Jean-Marc Valin

Fixes memory leak in some CELT unit tests

Reported in https://trac.xiph.org/ticket/2241
parent 1970d5be
......@@ -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)
......
......@@ -88,5 +88,6 @@ int main(void)
}
}
free(ptr);
return ret;
}
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment