sndfile-convert: Close input file on output format error

This commit is contained in:
Erik de Castro Lopo 2019-04-01 19:39:15 +11:00
parent df55170ce4
commit 25824cb914

View File

@ -329,7 +329,9 @@ main (int argc, char * argv [])
} ;
if (sf_format_check (&sfinfo) == 0)
{ sf_close (infile) ;
report_format_error_exit (argv [0], &sfinfo) ;
} ;
if ((sfinfo.format & SF_FORMAT_SUBMASK) == SF_FORMAT_GSM610 && sfinfo.samplerate != 8000)
{ printf (