[vlc-devel] [PATCH] avcodec: fix double free on failure to open audio
Alex Converse
alex.converse at gmail.com
Sat Feb 7 21:30:32 CET 2015
---
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;
}
--
1.9.1
More information about the vlc-devel
mailing list