From acea53fea0b86c574996b07831d2681a8195f510 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Oct 2014 12:22:00 +0200 Subject: [PATCH] avcodec/eatgv: use av_freep(), do not leave stale pointers in memory Signed-off-by: Michael Niedermayer --- libavcodec/eatgv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c index f204a1344c..b84af809f3 100644 --- a/libavcodec/eatgv.c +++ b/libavcodec/eatgv.c @@ -349,8 +349,8 @@ static av_cold int tgv_decode_end(AVCodecContext *avctx) TgvContext *s = avctx->priv_data; av_frame_free(&s->last_frame); av_freep(&s->frame_buffer); - av_free(s->mv_codebook); - av_free(s->block_codebook); + av_freep(&s->mv_codebook); + av_freep(&s->block_codebook); return 0; }