[FFmpeg-cvslog] r15507 - trunk/libavcodec/vorbis_dec.c
cehoyos
subversion
Wed Oct 1 23:47:49 CEST 2008
Author: cehoyos
Date: Wed Oct 1 23:47:49 2008
New Revision: 15507
Log:
Fix memleak for currupt input.
Modified:
trunk/libavcodec/vorbis_dec.c
Modified: trunk/libavcodec/vorbis_dec.c
==============================================================================
--- trunk/libavcodec/vorbis_dec.c (original)
+++ trunk/libavcodec/vorbis_dec.c Wed Oct 1 23:47:49 2008
@@ -960,6 +960,7 @@ static av_cold int vorbis_decode_init(AV
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)) {
More information about the ffmpeg-cvslog
mailing list