Closed jt0404 closed 5 months ago
When starting CpuProfile fails with error you exit the program but don't close the file. This PR fixes it.
CpuProfile
https://unix.stackexchange.com/questions/430365/what-happens-to-file-descriptors-when-the-process-is-killed
os.Exit() closes the file, in that the operating system closes any open files on process termination.
When starting
CpuProfile
fails with error you exit the program but don't close the file. This PR fixes it.