Commit cb89f6d5 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential memleak (CID 260)

parent 4201cd2b
......@@ -1902,7 +1902,10 @@ static int ParseRealText( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
const char *s = TextGetLine( txt );
if( !s )
{
free( psz_text );
return VLC_EGENERIC;
}
int i_len = strlen( s );
if( i_len == 0 ) break;
......
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