ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Wed Nov 19 13:42:46 2014 +0100| [b9792afad1c619f46f63ad4d977d6a2224bf4874] | committer: Michael Niedermayer
avcodec/tta: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9792afad1c619f46f63ad4d977d6a2224bf4874 --- libavcodec/tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 5fdbac8..01584d9 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -394,7 +394,7 @@ static av_cold int tta_decode_close(AVCodecContext *avctx) { TTAContext *s = avctx->priv_data; if (s->bps < 3) - av_free(s->decode_buffer); + av_freep(&s->decode_buffer); s->decode_buffer = NULL; av_freep(&s->ch_ctx); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog