From 480cd822b3da863e94303740b45f7fe512f55c12 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 15 Dec 2014 15:49:00 +0100 Subject: [PATCH] avformat/flic: se av_freep() to avoid leaving stale extradata pointer Signed-off-by: Michael Niedermayer --- libavformat/flic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flic.c b/libavformat/flic.c index f5e9e84c47..bef70c188a 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -175,7 +175,7 @@ static int flic_read_header(AVFormatContext *s) avio_seek(pb, 12, SEEK_SET); /* send over abbreviated FLIC header chunk */ - av_free(st->codec->extradata); + av_freep(&st->codec->extradata); if (ff_alloc_extradata(st->codec, 12)) return AVERROR(ENOMEM); memcpy(st->codec->extradata, header, 12);