vlc | branch: master | Filip Roséen <fi...@atch.se> | Mon Sep 19 23:53:39 2016 
+0200| [98a966e9ede82f7c437bcba844ea48ccb5199f81] | committer: Hugo 
Beauzée-Luyssen

demux/ttml: fix memory-leak in ReadTTML

Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr>

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

 modules/demux/ttml.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 66638b0..444d99d 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -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 );
                 }
             }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to