aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-22 11:51:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-12 17:11:54 +0100
commitbd78b9416d54fe0b3f4a69907420c7fa3ebc4ff8 (patch)
treed0066dde9f323029fd4979954d09f388c02ebb9e /libavformat
parent48ae72e50193b2bc9157acc316df323081926b12 (diff)
downloadffmpeg-bd78b9416d54fe0b3f4a69907420c7fa3ebc4ff8.tar.gz
avformat/riffdec: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/riffdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c
index 88e2229a77..fd3b583af2 100644
--- a/libavformat/riffdec.c
+++ b/libavformat/riffdec.c
@@ -114,7 +114,7 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
size -= 22;
}
if (cbSize > 0) {
- av_free(codec->extradata);
+ av_freep(&codec->extradata);
if (ff_get_extradata(codec, pb, cbSize) < 0)
return AVERROR(ENOMEM);
size -= cbSize;