summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_clone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_clone.c')
-rw-r--r--src/nxt_clone.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_clone.c b/src/nxt_clone.c
index 0fddd6c7..a2c376a3 100644
--- a/src/nxt_clone.c
+++ b/src/nxt_clone.c
@@ -127,9 +127,13 @@ nxt_clone_proc_map_write(nxt_task_t *task, const char *mapfile, pid_t pid,
nxt_errno);
}
+ close(mapfd);
+
return NXT_ERROR;
}
+ close(mapfd);
+
return NXT_OK;
}