Fix possible file descriptor leak (fix #485)

This commit is contained in:
Yves Rutschle committed 2025-01-05 18:37:12 +01:00
1 parent 2e9f23a2f4
commit 710807fd3b
1 file changed
-1
-1
View File
@@ -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);