psz_next = config_ChainCreate( &p_access->psz_access, &p_access->p_cfg,
psz_access );
- if( psz_next )
- {
- free( psz_next );
- }
+ free( psz_next );
p_access->psz_path = strdup( psz_name ? psz_name : "" );
p_access->p_sout = p_sout;
p_access->p_sys = NULL;
p_mux->p_sout = p_sout;
psz_next = config_ChainCreate( &p_mux->psz_mux, &p_mux->p_cfg, psz_mux );
- if( psz_next ) free( psz_next );
+ free( psz_next );
p_mux->p_access = p_access;
p_mux->pf_control = NULL;
TAB_APPEND( p_mux->i_nb_inputs, p_mux->pp_inputs, p_input );
if( p_mux->pf_addstream( p_mux, p_input ) < 0 )
{
- msg_Err( p_mux, "cannot add this stream" );
- TAB_REMOVE( p_mux->i_nb_inputs, p_mux->pp_inputs, p_input );
- block_FifoRelease( p_input->p_fifo );
- free( p_input );
- return NULL;
+ msg_Err( p_mux, "cannot add this stream" );
+ TAB_REMOVE( p_mux->i_nb_inputs, p_mux->pp_inputs, p_input );
+ block_FifoRelease( p_input->p_fifo );
+ free( p_input );
+ return NULL;
}
return p_input;