diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 15:49:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 15:49:00 +0100 |
commit | 480cd822b3da863e94303740b45f7fe512f55c12 (patch) | |
tree | 8bf2ab72b2e52ff26279c8d5785540478239e2a5 /libavformat/flic.c | |
parent | 0051e3c233357b243d598681c93bd5e8795b9104 (diff) | |
download | ffmpeg-480cd822b3da863e94303740b45f7fe512f55c12.tar.gz |
avformat/flic: se av_freep() to avoid leaving stale extradata pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flic.c')
-rw-r--r-- | libavformat/flic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |