Fix memleak
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 22 Nov 2008 16:33:07 +0000 (16:33 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 22 Nov 2008 16:33:07 +0000 (16:33 +0000)
Closes #2300

modules/demux/subtitle.c

index 4df7ec0..e3df463 100644 (file)
@@ -2024,6 +2024,7 @@ static int ParseSubViewer1( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx
 
             s = TextGetLine( txt );
             if( !s )
+                free( psz_text );
                 return VLC_EGENERIC;
 
             if( sscanf( s, "[%d:%d:%d]", &h2, &m2, &s2 ) == 3 )