Commit 6798f250 authored by Rémi Duraffort's avatar Rémi Duraffort

itml: no need to set to NULL after the free here.

parent 8a677b6a
...@@ -144,7 +144,8 @@ static bool parse_plist_node COMPLEX_INTERFACE ...@@ -144,7 +144,8 @@ static bool parse_plist_node COMPLEX_INTERFACE
if( !psz_name || !psz_value ) if( !psz_name || !psz_value )
{ {
msg_Err( p_demux, "invalid xml stream @ <plist>" ); msg_Err( p_demux, "invalid xml stream @ <plist>" );
FREE_ATT(); free( psz_name );
free( psz_value );
return false; return false;
} }
/* attribute: version */ /* attribute: version */
...@@ -158,8 +159,10 @@ static bool parse_plist_node COMPLEX_INTERFACE ...@@ -158,8 +159,10 @@ static bool parse_plist_node COMPLEX_INTERFACE
else else
msg_Warn( p_demux, "invalid <plist> attribute:\"%s\"", psz_name); msg_Warn( p_demux, "invalid <plist> attribute:\"%s\"", psz_name);
FREE_ATT(); free( psz_name );
free( psz_value );
} }
/* attribute version is mandatory !!! */ /* attribute version is mandatory !!! */
if( !b_version_found ) if( !b_version_found )
msg_Warn( p_demux, "<plist> requires \"version\" attribute" ); msg_Warn( p_demux, "<plist> requires \"version\" attribute" );
......
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