Commit d9f4825a authored by Laurent Aimar's avatar Laurent Aimar

Fixed a potential double free on error in qtl/shoutcast demuxers.

parent b04d7e33
...@@ -143,6 +143,7 @@ static int Demux( demux_t *p_demux ) ...@@ -143,6 +143,7 @@ static int Demux( demux_t *p_demux )
msg_Err( p_demux, "invalid root node %i, %s", msg_Err( p_demux, "invalid root node %i, %s",
xml_ReaderNodeType( p_xml_reader ), psz_eltname ); xml_ReaderNodeType( p_xml_reader ), psz_eltname );
free( psz_eltname ); free( psz_eltname );
psz_eltname = NULL;
/* second line has <?quicktime tag ... so we try to skip it */ /* second line has <?quicktime tag ... so we try to skip it */
msg_Dbg( p_demux, "trying to read one more node" ); msg_Dbg( p_demux, "trying to read one more node" );
......
...@@ -181,7 +181,6 @@ static int DemuxGenre( demux_t *p_demux, xml_reader_t *p_xml_reader, ...@@ -181,7 +181,6 @@ static int DemuxGenre( demux_t *p_demux, xml_reader_t *p_xml_reader,
{ {
free( psz_attrname ); free( psz_attrname );
free( psz_attrvalue ); free( psz_attrvalue );
free( psz_eltname );
break; 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