shithub: opus-tools

Download patch

ref: 0a7f91a6f72c6bb95df1f885cb1d7ab07c236456
parent: c168071251c21efddfe184ac572c64affa264edf
author: Gregory Maxwell <greg@xiph.org>
date: Tue May 22 19:19:26 EDT 2012

Fix minor memory leak with resampled output.

--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -851,6 +851,8 @@
    if(shapemem.a_buf)free(shapemem.a_buf);
    if(shapemem.b_buf)free(shapemem.b_buf);
 
+   if(resampler)speex_resampler_destroy(resampler);
+
    if(output)free(output);
 
    if(frange)fclose(frange);