Skip to content
Snippets Groups Projects
Commit 3c1199c3 authored by Vittorio Giovara's avatar Vittorio Giovara
Browse files

matroskadec: fix leak on error

CC: libav-stable@libav.org
Bug-Id: CID 1026767
parent 7785ce1c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment