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

playlist_pls: fix use after free (can be triggered by some invalid shoutcast playlist files).

parent 19d59d86
......@@ -147,7 +147,7 @@ static int Demux( demux_t *p_demux )
input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
free( psz_mrl_orig );
psz_mrl_orig = NULL;
psz_mrl_orig = psz_mrl = NULL;
}
else
{
......@@ -204,7 +204,6 @@ static int Demux( demux_t *p_demux )
input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
free( psz_mrl_orig );
psz_mrl = NULL;
}
else
{
......
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