diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-01-05 23:15:53 +0400 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-01-22 22:32:44 +0400 |
commit | 15cea3695daf3f6363794594982e3816ddc8d90b (patch) | |
tree | e530e3f5ad891149c6ca68d1353be07628bb6f41 /libavformat | |
parent | 66b9d7065a5c01bcf6b5d5325fd9b9d4132e7e6f (diff) |
riff: fix invalid av_freep() calls on EOF in ff_read_riff_info
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/riff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c index 4caac80643..99a8033732 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -669,8 +669,7 @@ int ff_read_riff_info(AVFormatContext *s, int64_t size) AV_WL32(key, chunk_code); if (avio_read(pb, value, chunk_size) != chunk_size) { - av_freep(key); - av_freep(value); + av_free(value); av_log(s, AV_LOG_ERROR, "premature end of file while reading INFO tag\n"); return AVERROR_INVALIDDATA; } |