matroskadec: fix leak on error
CC: libav-stable@libav.org Bug-Id: CID 1026767
This commit is contained in:
parent
7785ce1c76
commit
3c1199c3c4
@ -2265,6 +2265,7 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
|
||||
/* XXX: prevent data copy... */
|
||||
if (av_new_packet(pkt, pkt_size + offset) < 0) {
|
||||
av_free(pkt);
|
||||
av_freep(&pkt_data);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user