diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-16 15:03:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-20 03:27:17 +0100 |
commit | f5fd937fc5dfb1be11d467742c77246d5188e2ea (patch) | |
tree | 9b4c0547a4b9b5994e9252a42ac4ec3c1c57da38 | |
parent | de434423910efaee8c2d02a49a91ef3f0ab516ee (diff) | |
download | ffmpeg-f5fd937fc5dfb1be11d467742c77246d5188e2ea.tar.gz |
avformat/flvdec: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 91ea466551c148bd897706a1b6a168e783761a06)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 3b6d01af63..166ce35f6c 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -614,7 +614,7 @@ static int flv_read_close(AVFormatContext *s) static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size) { - av_free(st->codec->extradata); + av_freep(&st->codec->extradata); if (ff_get_extradata(st->codec, s->pb, size) < 0) return AVERROR(ENOMEM); return 0; |