forked from FFmpeg/FFmpeg
matroskadec: Use av_freep in ebml_read_ascii
Based on a Chromium patch Originally committed as revision 23166 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
44bf251a42
commit
1c664b239c
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ static int ebml_read_ascii(ByteIOContext *pb, int size, char **str)
|
|||
if (!(*str = av_malloc(size + 1)))
|
||||
return AVERROR(ENOMEM);
|
||||
if (get_buffer(pb, (uint8_t *) *str, size) != size) {
|
||||
av_free(*str);
|
||||
av_freep(str);
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
(*str)[size] = '\0';
|
||||
|
|
Loading…
Add table
Reference in a new issue