Commit e0814475 authored by conrad's avatar conrad

matroskadec: Use av_freep in ebml_read_ascii

Based on a Chromium patch

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23166 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 680b0187
......@@ -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';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment