aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-16 15:03:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-16 15:37:04 +0100
commit91ea466551c148bd897706a1b6a168e783761a06 (patch)
tree4831443f5444208facfcd902a670d8a9a4a53e31
parent16d763fa45b95783c6770edc559769d9a83d6a10 (diff)
downloadffmpeg-91ea466551c148bd897706a1b6a168e783761a06.tar.gz
avformat/flvdec: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/flvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index c64b3a9d92..54f2f56dba 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -623,7 +623,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;