diff --git a/src/angle_write.cpp b/src/angle_write.cpp index e0d6827a66..ca0118eda5 100644 --- a/src/angle_write.cpp +++ b/src/angle_write.cpp @@ -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