summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_port_memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index bffae8a1..ab2f826f 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -318,6 +318,7 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_port_mmaps_t *mmaps,
MAP_SHARED, fd, 0);
if (nxt_slow_path(mem == MAP_FAILED)) {
+ nxt_fd_close(fd);
goto remove_fail;
}