Mercurial > libavcodec.hg
diff vorbis_dec.c @ 7973:fb9a51e5d116 libavcodec
Fix memleak for currupt input.
author | cehoyos |
---|---|
date | Wed, 01 Oct 2008 21:47:49 +0000 |
parents | c0745c5b1bb4 |
children | ddecbc18fe94 |
line wrap: on
line diff
--- 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)) {