Skip to content

Commit 73808cf

Browse files
committed
Fix memory leaks in opus_compare.c
This makes it possible to run the testvectors with asan enabled.
1 parent 4507637 commit 73808cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/opus_compare.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ int main(int _argc,const char **_argv){
363363
Ef*=Ef;
364364
err+=Ef*Ef;
365365
}
366+
free(xb);
367+
free(X);
368+
free(Y);
366369
err=pow(err/nframes,1.0/16);
367370
Q=100*(1-0.5*log(1+err)/log(1.13));
368371
if(Q<0){

0 commit comments

Comments
 (0)