Skip to content
Snippets Groups Projects
Commit 83f96959 authored by ivoire's avatar ivoire
Browse files

b4s: fix a potential memleak.

parent 0afcb97c
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,12 @@ static int Demux( demux_t *p_demux )
{
char *psz_name = xml_ReaderName( p_xml_reader );
char *psz_value = xml_ReaderValue( p_xml_reader );
if( !psz_name || !psz_value ) return -1;
if( !psz_name || !psz_value )
{
free( psz_name );
free( psz_value );
return -1;
}
if( !strcmp( psz_elname, "entry" ) &&
!strcmp( psz_name, "Playstring" ) )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment