[vlc-commits] avcodec: fix double free on failure to open subtitles

Jean-Baptiste Kempf git at videolan.org
Sun Feb 8 09:54:41 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb  8 09:54:12 2015 +0100| [7360dc22426f916c5221715e580ee76f8d319b7c] | committer: Jean-Baptiste Kempf

avcodec: fix double free on failure to open subtitles

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7360dc22426f916c5221715e580ee76f8d319b7c
---

 modules/codec/avcodec/subtitle.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/codec/avcodec/subtitle.c b/modules/codec/avcodec/subtitle.c
index ad81c30..5db71bd 100644
--- a/modules/codec/avcodec/subtitle.c
+++ b/modules/codec/avcodec/subtitle.c
@@ -100,7 +100,6 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
 
     if (ret < 0) {
         msg_Err(dec, "cannot open codec (%s)", codec->name);
-        free(context->extradata);
         free(sys);
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list