changeset 7973:fb9a51e5d116 libavcodec

Fix memleak for currupt input.
author cehoyos
date Wed, 01 Oct 2008 21:47:49 +0000
parents 6cf217dad67d
children 2b20ad98e424
files vorbis_dec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)) {