Skip to content

Commit

Permalink
Fix possible file descriptor leak (fix #485)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrutschle committed Jan 5, 2025
1 parent 2e9f23a commit 710807f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,6 @@ void write_pid_file(const char* pidfile)
res = fprintf(f, "%d\n", getpid());
if (res < 0) {
print_message(msg_system_error, "write_pid_file: fprintf: %s\n", strerror(errno));
return;
}

res = fclose(f);
Expand Down

0 comments on commit 710807f

Please sign in to comment.