sfprocess: Fix memory leaks

This commit is contained in:
evpobr 2021-09-01 10:01:43 +05:00
parent b2998c9fc6
commit 0956676eb1

View File

@ -98,12 +98,14 @@ main (void)
if (sfinfo.channels > MAX_CHANNELS)
{ printf ("Not able to process more than %d channels\n", MAX_CHANNELS) ;
sf_close (infile) ;
return 1 ;
} ;
/* Open the output file. */
if (! (outfile = sf_open (outfilename, SFM_WRITE, &sfinfo)))
{ printf ("Not able to open output file %s.\n", outfilename) ;
puts (sf_strerror (NULL)) ;
sf_close (infile) ;
return 1 ;
} ;