/* Allocate structure */
p_sys = malloc( sizeof( aout_sys_t ) );
if( p_sys == NULL )
- {
- msg_Err( p_aout, "out of memory" );
return VLC_ENOMEM;
- }
p_aout->output.p_sys = p_sys;
{
msg_Err( p_aout, "cannot open esound socket (format 0x%08x at %d Hz)",
p_sys->esd_format, p_aout->output.output.i_rate );
+ free( psz_server );
free( p_sys );
return VLC_EGENERIC;
}
/ p_aout->output.output.i_bytes_per_frame
/ p_aout->output.output.i_rate;
+ free( psz_server );
close( i_newfd );
return VLC_SUCCESS;
}