vlc | branch: master | Hugo Beauzée-Luyssen <h...@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

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

Reply via email to