Commit 187f6e04 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: ts: fix unlikely leak (cid #1231839)

parent c2132a15
......@@ -3141,11 +3141,12 @@ static void EITCallBack( demux_t *p_demux,
/* Only take first description, as we don't handle language-info
for epg atm*/
if( pE && psz_name == NULL)
if( pE && psz_name == NULL )
{
psz_name = EITConvertToUTF8( p_demux,
pE->i_event_name, pE->i_event_name_length,
p_sys->b_broken_charset );
free( psz_text );
psz_text = EITConvertToUTF8( p_demux,
pE->i_text, pE->i_text_length,
p_sys->b_broken_charset );
......
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