mirror of https://code.videolan.org/videolan/vlc
aout: file: fix psz_name leak
This commit is contained in:
parent
c3c9840bc7
commit
02d87cc92b
|
@ -145,7 +145,10 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
|
|||
/* Allocate structure */
|
||||
aout_sys_t *p_sys = malloc( sizeof( aout_sys_t ) );
|
||||
if( p_sys == NULL )
|
||||
{
|
||||
free( psz_name );
|
||||
return VLC_ENOMEM;
|
||||
}
|
||||
p_aout->sys = p_sys;
|
||||
|
||||
if( !strcmp( psz_name, "-" ) )
|
||||
|
|
Loading…
Reference in New Issue