Commit 937fa424 authored by Rémi Duraffort's avatar Rémi Duraffort

podcast: no need to strdup the string here.

parent afe8f372
......@@ -189,28 +189,32 @@ static int Demux( demux_t *p_demux )
if( !strcmp( psz_name, "url" ) )
{
free( psz_item_mrl );
psz_item_mrl = strdup( psz_value );
psz_item_mrl = psz_value;
}
else if( !strcmp( psz_name, "length" ) )
{
free( psz_item_size );
psz_item_size = strdup( psz_value );
psz_item_size = psz_value;
}
else if( !strcmp( psz_name, "type" ) )
{
free( psz_item_type );
psz_item_type = strdup( psz_value );
psz_item_type = psz_value;
}
else
{
msg_Dbg( p_demux,"unhandled attribure %s in element %s",
psz_name, psz_elname );
free( psz_value );
}
}
else
{
msg_Dbg( p_demux,"unhandled attribure %s in element %s",
psz_name, psz_elname );
free( psz_value );
}
free( psz_name );
free( psz_value );
}
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