Commit 2fe4b621 authored by Michael Niedermayer's avatar Michael Niedermayer

matroskadec: fix memleak of pkt_data

Fixes: CID1026767
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0722b4d0
......@@ -2264,7 +2264,8 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
/* XXX: prevent data copy... */
if (av_new_packet(pkt, pkt_size + offset) < 0) {
av_free(pkt);
return AVERROR(ENOMEM);
res = AVERROR(ENOMEM);
goto fail;
}
if (st->codec->codec_id == AV_CODEC_ID_PRORES) {
......
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