[vlc-commits] ttml demux: Fix potential double free

Hugo Beauzée-Luyssen git at videolan.org
Fri Sep 16 18:07:55 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Sep 16 13:07:27 2016 +0200| [24bbf9161c973ee7ba2d589e4eea7f64ecab7104] | committer: Hugo Beauzée-Luyssen

ttml demux: Fix potential double free

fix cid #1372987

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

 modules/demux/ttml.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 4b6eeed..f060d94 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -705,9 +705,9 @@ static int ReadTTML( demux_t* p_demux )
                 }
                 else
                 {
-                    ClearNode( p_node );
                     if( ParseTimeOnSpan( p_sys , psz_text ) != VLC_SUCCESS )
                         goto error;
+                    ClearNode( p_node );
                 }
             }
             else



More information about the vlc-commits mailing list