Commit 6b099317 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

BD: fix memleak on error path

parent 2f1737e7
......@@ -161,7 +161,10 @@ static int Open( vlc_object_t *p_this )
/* Fill p_demux field */
p_demux->p_sys = p_sys = malloc( sizeof(*p_sys) );
if( !p_sys )
{
free( psz_base );
return VLC_EGENERIC;
}
p_sys->psz_base = psz_base;
p_sys->b_shortname = b_shortname;
TAB_INIT( p_sys->i_mpls, p_sys->pp_mpls );
......
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