From 6b0657071c566c2de588c0991ac513ae0d5928b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Fri, 21 Feb 2025 14:16:51 +0000 Subject: [PATCH] CA-407106: Close file descriptor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a short live program and would close it on exit anyway, but we don't want to ignore this kind of error in the rest of the program. Signed-off-by: Edwin Török --- commands/cleanupwatchdog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/cleanupwatchdog.c b/commands/cleanupwatchdog.c index 5e39afc..501847a 100755 --- a/commands/cleanupwatchdog.c +++ b/commands/cleanupwatchdog.c @@ -398,6 +398,7 @@ main( return MTC_EXIT_INVALID_PARAMETER; } } + (void)fclose(fp); for (idindex = 0; idindex < idnum; idindex++) { if (id[idindex] == 0)