[vlc-commits] avcodec: fix double free on failure to open audio
Alex Converse
git at videolan.org
Sun Feb 8 09:54:41 CET 2015
vlc | branch: master | Alex Converse <alex.converse at gmail.com> | Sat Feb 7 12:30:32 2015 -0800| [a3bbecd9fd9406d08b6b0dcf5c06bff123b58853] | committer: Jean-Baptiste Kempf
avcodec: fix double free on failure to open audio
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3bbecd9fd9406d08b6b0dcf5c06bff123b58853
---
modules/codec/avcodec/audio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index a37f1cf..514f76d 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -261,7 +261,6 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
/* ***** Open the codec ***** */
if( OpenAudioCodec( p_dec ) < 0 )
{
- av_free( p_context->extradata );
free( p_sys );
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list