[FFmpeg-cvslog] avcodec/atrac3plusdec: Free mdct contexts at the end

Michael Niedermayer git at videolan.org
Tue Apr 14 02:32:07 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 14 02:13:57 2015 +0200| [89b3c5215a510c729de0eeded52b08fcc9fd2d2a] | committer: Michael Niedermayer

avcodec/atrac3plusdec: Free mdct contexts at the end

Fixes memleak

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89b3c5215a510c729de0eeded52b08fcc9fd2d2a
---

 libavcodec/atrac3plusdec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c
index e6f0416..f858497 100644
--- a/libavcodec/atrac3plusdec.c
+++ b/libavcodec/atrac3plusdec.c
@@ -72,6 +72,9 @@ static av_cold int atrac3p_decode_close(AVCodecContext *avctx)
     av_freep(&ctx->ch_units);
     av_freep(&ctx->fdsp);
 
+    ff_mdct_end(&ctx->mdct_ctx);
+    ff_mdct_end(&ctx->ipqf_dct_ctx);
+
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list