Commit a43dac6a authored by conrad's avatar conrad

matroskadec: Free ebml binary buffer on error

Based on a Chromium patch

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23169 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 43d9c147
......@@ -641,8 +641,10 @@ static int ebml_read_binary(ByteIOContext *pb, int length, EbmlBin *bin)
bin->size = length;
bin->pos = url_ftell(pb);
if (get_buffer(pb, bin->data, length) != length)
if (get_buffer(pb, bin->data, length) != length) {
av_freep(&bin->data);
return AVERROR(EIO);
}
return 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