X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faudio_output%2Fesd.c;h=b56b99cb9890facf6927a0e228a3700306096683;hb=ec6ed81c26a20b84a0592d58176f9e778cbc3933;hp=e844d14a6af55cb26ef10a0527ab5c84364dce7b;hpb=3561b9b28f58eb7a4183e158a8fd973800d31ceb;p=vlc diff --git a/modules/audio_output/esd.c b/modules/audio_output/esd.c index e844d14a6a..b56b99cb98 100644 --- a/modules/audio_output/esd.c +++ b/modules/audio_output/esd.c @@ -91,10 +91,7 @@ static int Open( vlc_object_t *p_this ) /* 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; @@ -149,6 +146,7 @@ static int Open( vlc_object_t *p_this ) { 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; } @@ -183,6 +181,7 @@ static int Open( vlc_object_t *p_this ) / p_aout->output.output.i_bytes_per_frame / p_aout->output.output.i_rate; + free( psz_server ); close( i_newfd ); return VLC_SUCCESS; }