Module: libav Branch: master Commit: 3c1199c3c4cbdb4ffff0de89f06d5a08acefe356
Author: Vittorio Giovara <[email protected]> Committer: Vittorio Giovara <[email protected]> Date: Fri Oct 24 00:05:52 2014 +0100 matroskadec: fix leak on error CC: [email protected] Bug-Id: CID 1026767 --- libavformat/matroskadec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 59fc34b..d3ce009 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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); } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
