[vlc-commits] demux/ttml: fix memory-leak in ReadTTML
Filip Roséen
git at videolan.org
Tue Sep 20 00:59:19 CEST 2016
vlc | branch: master | Filip Roséen <filip at 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 <hugo at 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 );
}
}
More information about the vlc-commits
mailing list