Commit 4dab83af authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

bd: memory leak

parent 6253e94c
......@@ -1047,7 +1047,7 @@ static void LoadMpls( demux_t *p_demux, const char *psz_name, int i_id )
block_t *p_block = LoadBlock( p_demux, psz_name );
if( !p_block )
goto error;
return;
/* */
bd_mpls_t *p_mpls = malloc( sizeof(*p_mpls) );
......@@ -1115,7 +1115,7 @@ static void LoadMpls( demux_t *p_demux, const char *psz_name, int i_id )
error:
msg_Err( p_demux, "Failed loading %s", psz_name );
if( p_block )
free( p_mpls );
block_Release( p_block );
}
......
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