fix file handle leak

This commit is contained in:
Axel Kohlmeyer
2022-12-25 04:35:03 -05:00
parent da98363a25
commit bbdc6fd3ab

View File

@ -147,6 +147,7 @@ void AngleWrite::command(int narg, char **arg)
fgets(line, MAXLINE, coeffs);
writer->input->one(fmt::format("angle_coeff {}", line));
}
fclose(coeffs);
platform::unlink(coeffs_file);
// initialize system