[vlc-commits] ttml codec: Fix double free

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 15 13:16:20 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 15 11:55:31 2016 +0200| [a0c528fb2c27c3dbdfe3ddee31a6aab7fb0ae7d9] | committer: Hugo Beauzée-Luyssen

ttml codec: Fix double free

fix cid #1372964

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

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

diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index b45d8e4..8f23b42 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -276,7 +276,6 @@ static ttml_style_t* ParseTTMLStyle( decoder_t *p_dec, xml_reader_t* p_reader, c
                     if( p_next_style == NULL )
                     {
                         msg_Warn( p_dec, "Style \"%s\" not found", token );
-                        free( value );
                         break;
                     }
                     MergeTTMLStyle( p_next_style, p_style );



More information about the vlc-commits mailing list