diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-24 00:05:52 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-24 23:43:25 +0100 |
commit | 3c1199c3c4cbdb4ffff0de89f06d5a08acefe356 (patch) | |
tree | 1424936b285879e65d60bb743c963fe622497450 | |
parent | 7785ce1c769369abf85b276148548a5510aabb5f (diff) | |
download | ffmpeg-3c1199c3c4cbdb4ffff0de89f06d5a08acefe356.tar.gz |
matroskadec: fix leak on error
CC: libav-stable@libav.org
Bug-Id: CID 1026767
-rw-r--r-- | libavformat/matroskadec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 59fc34b142..d3ce009ac0 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); } |