From bbdc6fd3ab1ef7ce093fcc6337342e680d0942d5 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 25 Dec 2022 04:35:03 -0500 Subject: [PATCH] fix file handle leak --- src/angle_write.cpp | 1 + 1 file changed, 1 insertion(+) 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