mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-14 14:22:12 +03:00
Fix possible file descriptor leak (fix #485)
This commit is contained in:
parent
2e9f23a2f4
commit
710807fd3b
1
common.c
1
common.c
@ -963,7 +963,6 @@ void write_pid_file(const char* pidfile)
|
|||||||
res = fprintf(f, "%d\n", getpid());
|
res = fprintf(f, "%d\n", getpid());
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
print_message(msg_system_error, "write_pid_file: fprintf: %s\n", strerror(errno));
|
print_message(msg_system_error, "write_pid_file: fprintf: %s\n", strerror(errno));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
res = fclose(f);
|
res = fclose(f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user