demux/ttml: fix memory-leak in ReadTTML
authorFilip Roséen <filip@atch.se>
Mon, 19 Sep 2016 21:53:39 +0000 (23:53 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 19 Sep 2016 22:40:47 +0000 (00:40 +0200)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
modules/demux/ttml.c

index 66638b0..444d99d 100644 (file)
@@ -707,6 +707,8 @@ static int ReadTTML( demux_t* p_demux )
                 {
                     if( ParseTimeOnSpan( p_sys , psz_text ) != VLC_SUCCESS )
                         goto error;
+
+                    free( psz_text );
                     ClearNode( p_node );
                 }
             }