]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Fix memleak for currupt input.
authorcehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 1 Oct 2008 21:47:49 +0000 (21:47 +0000)
committercehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 1 Oct 2008 21:47:49 +0000 (21:47 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15507 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/vorbis_dec.c

index 9fc619b80345bfa73fddd19ccb23e222342b3b34..6c15cb8b69b4bf519830ccf1e62df1bcd391dfb4 100644 (file)
@@ -960,6 +960,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) {
     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)) {