summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorDave McAllister <davemc@gmail.com>2025-08-20 09:52:15 -0700
committerDave McAllister <davemc@gmail.com>2025-08-20 09:52:15 -0700
commitc8cc9247370a1d57e4f4ba4dbaaa232e81363f56 (patch)
treeee9054cb9e8b8d986c16310b7bfc07dc531307ad /src/nxt_main_process.c
parent32c91a67a488ff5d46357f89578a6721ba2c8ac2 (diff)
parent1701935ea4a55f3ce4b5da5db866fc1b11558e0c (diff)
downloadunit-c8cc9247370a1d57e4f4ba4dbaaa232e81363f56.tar.gz
unit-c8cc9247370a1d57e4f4ba4dbaaa232e81363f56.tar.bz2
Merge branch 'master' of https://github.com/nginx/unit
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r--src/nxt_main_process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index e942c1a8..25798ea0 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -1730,5 +1730,8 @@ nxt_main_port_access_log_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
if (nxt_fast_path(port != NULL)) {
(void) nxt_port_socket_write(task, port, type, file.fd,
msg->port_msg.stream, 0, NULL);
+
+ } else {
+ nxt_file_close(task, &file);
}
}