[FFmpeg-cvslog] avcodec/eatqi: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer
git at videolan.org
Sun Oct 12 14:42:51 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 12 12:22:00 2014 +0200| [28b829b8bb47b15a64e2413ba7f5b30dc43429f1] | committer: Michael Niedermayer
avcodec/eatqi: 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=28b829b8bb47b15a64e2413ba7f5b30dc43429f1
---
libavcodec/eatqi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c
index 864291a..b8e4d7c 100644
--- a/libavcodec/eatqi.c
+++ b/libavcodec/eatqi.c
@@ -149,7 +149,7 @@ static int tqi_decode_frame(AVCodecContext *avctx,
static av_cold int tqi_decode_end(AVCodecContext *avctx)
{
TqiContext *t = avctx->priv_data;
- av_free(t->bitstream_buf);
+ av_freep(&t->bitstream_buf);
return 0;
}
More information about the ffmpeg-cvslog
mailing list