diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-19 03:03:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-19 03:03:40 +0200 |
commit | c5e295cb9d57489741f66cbd6b058f0307652b6e (patch) | |
tree | b40d2284e90353ab15fd31cedcac111475bb79d3 | |
parent | 993a2487de7d53d5787d2267ddadd588e24e89ca (diff) | |
download | ffmpeg-c5e295cb9d57489741f66cbd6b058f0307652b6e.tar.gz |
avcodec/mpegaudiodec_template: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mpegaudiodec_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c index c4c03d9106..1c97d724f4 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; } |