Closing leaking file descriptor.

Found by Coverity (CID 349484).
This commit is contained in:
Tiago Natel
2019-09-20 13:16:33 +00:00
parent 514f34144a
commit 7f389c814a

View File

@@ -127,9 +127,13 @@ nxt_clone_proc_map_write(nxt_task_t *task, const char *mapfile, pid_t pid,
nxt_errno); nxt_errno);
} }
close(mapfd);
return NXT_ERROR; return NXT_ERROR;
} }
close(mapfd);
return NXT_OK; return NXT_OK;
} }