Commit da7df728 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Derk-Jan Hartman

Fix potential memleak (CID 260)

(cherry picked from commit cb89f6d5)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent bde096d8
......@@ -1898,7 +1898,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