shithub: opus

Download patch

ref: 73808cf8ba20b3efa36d271ee066808c79154513
parent: 4507637ccca66d1520e806bbbb69396e4511679c
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri May 26 12:51:48 EDT 2017

Fix memory leaks in opus_compare.c

This makes it possible to run the testvectors with asan enabled.

--- a/src/opus_compare.c
+++ b/src/opus_compare.c
@@ -363,6 +363,9 @@
     Ef*=Ef;
     err+=Ef*Ef;
   }
+  free(xb);
+  free(X);
+  free(Y);
   err=pow(err/nframes,1.0/16);
   Q=100*(1-0.5*log(1+err)/log(1.13));
   if(Q<0){