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

Fix use-after-free (cid #1047498 and #1047499)

parent 8d1aecb3
......@@ -203,8 +203,8 @@ static int Demux( demux_t *p_demux )
{
/* Extended info */
psz_parse += sizeof("EXTINF:") - 1;
free(psz_name);
free(psz_artist);
FREENULL( psz_name );
FREENULL( psz_artist );
parseEXTINF( psz_parse, &psz_artist, &psz_name, &i_parsed_duration );
if( i_parsed_duration >= 0 )
i_duration = i_parsed_duration * INT64_C(1000000);
......
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