Commit bec259b4 authored by Laurent Aimar's avatar Laurent Aimar Committed by Rémi Duraffort

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

(cherry picked from commit d9f4825a)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 93b291db
......@@ -148,6 +148,7 @@ static int Demux( demux_t *p_demux )
msg_Err( p_demux, "invalid root node %i, %s",
xml_ReaderNodeType( p_xml_reader ), psz_eltname );
free( psz_eltname );
psz_eltname = NULL;
/* second line has <?quicktime tag ... so we try to skip it */
msg_Dbg( p_demux, "trying to read one more node" );
......
......@@ -188,7 +188,6 @@ static int DemuxGenre( demux_t *p_demux, xml_reader_t *p_xml_reader,
{
free( psz_attrname );
free( psz_attrvalue );
free( psz_eltname );
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