diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-14 21:23:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 15:21:19 +0100 |
commit | f52324629a0f8e3a022a494fabfe0a4354f78f99 (patch) | |
tree | 3cf09adf1728ca7b46fa117fc2215d4cf849f143 | |
parent | eee78ef30daca0ed40a7ef21c749fd468667c09b (diff) | |
download | ffmpeg-f52324629a0f8e3a022a494fabfe0a4354f78f99.tar.gz |
riff: Fix freeing of random value.
Fixes Ticket752
Bug-found-by: Diana Elena Muscalu
(cherry picked from commit 76b9a0961c33c9eb19b220c6f0edfbb3e79fcd59)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 3cc3c354c0..9915eb259b 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -713,8 +713,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_freep(&value); av_log(s, AV_LOG_ERROR, "premature end of file while reading INFO tag\n"); return AVERROR_INVALIDDATA; } |