Commit 19bca43e authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak (CID 212)

parent f7625a5d
...@@ -1352,7 +1352,10 @@ static int ParseAQT( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx ) ...@@ -1352,7 +1352,10 @@ static int ParseAQT( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
const char *s = TextGetLine( txt ); const char *s = TextGetLine( txt );
if( !s ) if( !s )
{
free( psz_text );
return VLC_EGENERIC; return VLC_EGENERIC;
}
/* Data Lines */ /* Data Lines */
if( sscanf (s, "-->> %d", &t) == 1) if( sscanf (s, "-->> %d", &t) == 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment