]> git.sesse.net Git - vlc/commitdiff
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 4df7ec09dd5c46c4a507e3b597e326ba02210ccb..e3df463f456535e032e25bf388bcf60317aace89 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 )