From 73808cf8ba20b3efa36d271ee066808c79154513 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin <jmvalin@jmvalin.ca> Date: Fri, 26 May 2017 16:51:48 -0400 Subject: [PATCH] Fix memory leaks in opus_compare.c This makes it possible to run the testvectors with asan enabled. --- src/opus_compare.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/opus_compare.c b/src/opus_compare.c index 06c67d752..1956e08fa 100644 --- a/src/opus_compare.c +++ b/src/opus_compare.c @@ -363,6 +363,9 @@ int main(int _argc,const char **_argv){ 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){ -- GitLab