]> git.sesse.net Git - vlc/commitdiff
Fix memleak (CID 212)
authorRémi Duraffort <ivoire@videolan.org>
Wed, 1 Oct 2008 19:13:54 +0000 (21:13 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 1 Oct 2008 19:13:54 +0000 (21:13 +0200)
modules/demux/subtitle.c

index d814e0056276e6022638095282b51ca27c937cb1..485ae294cb764a3faf3241662b4cbe6acc63b539 100644 (file)
@@ -1352,7 +1352,10 @@ static int ParseAQT( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
         const char *s = TextGetLine( txt );
 
         if( !s )
+        {
+            free( psz_text );
             return VLC_EGENERIC;
+        }
 
         /* Data Lines */
         if( sscanf (s, "-->> %d", &t) == 1)