Commit fdda9b44 authored by Michael Niedermayer's avatar Michael Niedermayer

matroska_parse_frame: fix memleak

Fixes CID991856
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dec9800c
......@@ -2140,6 +2140,8 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
additional_size + 8);
if(side_data == NULL) {
av_free_packet(pkt);
av_free(pkt);
return AVERROR(ENOMEM);
}
AV_WB64(side_data, additional_id);
......
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