diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-12 12:22:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-12 12:22:16 +0200 |
commit | 28b829b8bb47b15a64e2413ba7f5b30dc43429f1 (patch) | |
tree | 283af64b0bd7a54d132320335f130e08ba5bd0ab /libavcodec/eatqi.c | |
parent | 20df02680c94df1dd74f2e69068cbf02cb98d290 (diff) | |
download | ffmpeg-28b829b8bb47b15a64e2413ba7f5b30dc43429f1.tar.gz |
avcodec/eatqi: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/eatqi.c')
-rw-r--r-- | libavcodec/eatqi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index 864291a95c..b8e4d7c5d4 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; } |