# HG changeset patch # User cehoyos # Date 1222897669 0 # Node ID fb9a51e5d11683e0fb5aaf4aaf13bfaca93b2f47 # Parent 6cf217dad67de2d03c5d84b9b8b9be0702752fc9 Fix memleak for currupt input. diff -r 6cf217dad67d -r fb9a51e5d116 vorbis_dec.c --- a/vorbis_dec.c Wed Oct 01 14:48:54 2008 +0000 +++ b/vorbis_dec.c Wed Oct 01 21:47:49 2008 +0000 @@ -960,6 +960,7 @@ hdr_type=get_bits(gb, 8); if (hdr_type!=5) { av_log(avccontext, AV_LOG_ERROR, "Third header is not the setup header.\n"); + vorbis_free(vc); return -1; } if (vorbis_parse_setup_hdr(vc)) {