[FFmpeg-cvslog] avcodec/eamad: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer
git at videolan.org
Sat Oct 11 22:56:43 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 11 22:50:51 2014 +0200| [c712d240b1684dd5eb32636a28699742034618a0] | committer: Michael Niedermayer
avcodec/eamad: 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=c712d240b1684dd5eb32636a28699742034618a0
---
libavcodec/eamad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 711363c..c768b93 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -329,7 +329,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
{
MadContext *t = avctx->priv_data;
av_frame_free(&t->last_frame);
- av_free(t->bitstream_buf);
+ av_freep(&t->bitstream_buf);
return 0;
}
More information about the ffmpeg-cvslog
mailing list