Skip to content

Commit

Permalink
CA-407106: Close file descriptor
Browse files Browse the repository at this point in the history
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 <edwin.torok@cloud.com>
  • Loading branch information
edwintorok committed Feb 24, 2025
1 parent 2124052 commit 6b06570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/cleanupwatchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ main(
return MTC_EXIT_INVALID_PARAMETER;
}
}
(void)fclose(fp);
for (idindex = 0; idindex < idnum; idindex++)
{
if (id[idindex] == 0)
Expand Down

0 comments on commit 6b06570

Please sign in to comment.