Commit 76530ab0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

bd: memory leak

parent 4dab83af
...@@ -1141,7 +1141,7 @@ static void LoadClpi( demux_t *p_demux, const char *psz_name, int i_id ) ...@@ -1141,7 +1141,7 @@ static void LoadClpi( demux_t *p_demux, const char *psz_name, int i_id )
block_t *p_block = LoadBlock( p_demux, psz_name ); block_t *p_block = LoadBlock( p_demux, psz_name );
if( !p_block ) if( !p_block )
goto error; return;
/* */ /* */
bd_clpi_t *p_clpi = malloc( sizeof(*p_clpi) ); bd_clpi_t *p_clpi = malloc( sizeof(*p_clpi) );
...@@ -1189,8 +1189,8 @@ static void LoadClpi( demux_t *p_demux, const char *psz_name, int i_id ) ...@@ -1189,8 +1189,8 @@ static void LoadClpi( demux_t *p_demux, const char *psz_name, int i_id )
error: error:
msg_Err( p_demux, "Failed loading %s", psz_name ); msg_Err( p_demux, "Failed loading %s", psz_name );
if( p_block ) free( p_clpi );
block_Release( p_block ); 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