diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2008-10-01 21:47:49 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2008-10-01 21:47:49 +0000 |
commit | c8562a6fda3c45612f0da168b03f268591c16c1f (patch) | |
tree | 058322199c5a3a7a12ddec45f504a7c1275bef6d | |
parent | 0be4b8d930a16801f0501aae0389402e0dab9fa7 (diff) | |
download | ffmpeg-c8562a6fda3c45612f0da168b03f268591c16c1f.tar.gz |
Fix memleak for currupt input.
Originally committed as revision 15507 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vorbis_dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vorbis_dec.c b/libavcodec/vorbis_dec.c index 9fc619b803..6c15cb8b69 100644 --- a/libavcodec/vorbis_dec.c +++ b/libavcodec/vorbis_dec.c @@ -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)) { |