Browse Source

riff: Fix freeing of random value.

Fixes Ticket752
Bug-found-by: Diana Elena Muscalu
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
76b9a0961c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/riff.c

+ 1
- 2
libavformat/riff.c View File

@@ -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;
}


Loading…
Cancel
Save