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

podcast: no need to strdup the string here.

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