ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Sun Oct 19 
03:03:04 2014 +0200| [c5e295cb9d57489741f66cbd6b058f0307652b6e] | committer: 
Michael Niedermayer

avcodec/mpegaudiodec_template: use av_freep(), do not leave stale pointers in 
memory

Signed-off-by: Michael Niedermayer <[email protected]>

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

 libavcodec/mpegaudiodec_template.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegaudiodec_template.c 
b/libavcodec/mpegaudiodec_template.c
index c4c03d9..1c97d72 100644
--- a/libavcodec/mpegaudiodec_template.c
+++ b/libavcodec/mpegaudiodec_template.c
@@ -1819,7 +1819,7 @@ static av_cold int decode_close_mp3on4(AVCodecContext * 
avctx)
     int i;
 
     for (i = 0; i < s->frames; i++)
-        av_free(s->mp3decctx[i]);
+        av_freep(&s->mp3decctx[i]);
 
     return 0;
 }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to