Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-15 00:23:03 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-12-15 00:26:47 +0400
commit76b9a0961c33c9eb19b220c6f0edfbb3e79fcd59 (patch)
tree50777755f84a85088677a45d17fddb1c3afb97e1 /libavformat/riff.c
parent54c7e81a53cd6c29d4f8673d83f53adef73e9b72 (diff)
riff: Fix freeing of random value.
Fixes Ticket752 Bug-found-by: Diana Elena Muscalu
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r--libavformat/riff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 8c4d797e93..ea598d272e 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -715,8 +715,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;
}