[FFmpeg-cvslog] avcodec/mpegaudiodec_template: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer
git at videolan.org
Sun Oct 19 04:17:48 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>
> 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;
}
More information about the ffmpeg-cvslog
mailing list