Fixing Coverity warnings.
CID 200496 CID 200494 CID 200490 CID 200489 CID 200483 CID 200482 CID 200472 CID 200465
This commit is contained in:
@@ -191,7 +191,6 @@ nxt_port_incoming_port_mmap(nxt_task_t *task, nxt_process_t *process,
|
||||
fd, process->pid);
|
||||
|
||||
port_mmap = NULL;
|
||||
hdr = NULL;
|
||||
|
||||
if (fstat(fd, &mmap_stat) == -1) {
|
||||
nxt_log(task, NXT_LOG_WARN, "fstat(%FD) failed %E", fd, nxt_errno);
|
||||
@@ -214,6 +213,8 @@ nxt_port_incoming_port_mmap(nxt_task_t *task, nxt_process_t *process,
|
||||
if (nxt_slow_path(mmap_handler == NULL)) {
|
||||
nxt_log(task, NXT_LOG_WARN, "failed to allocate mmap_handler");
|
||||
|
||||
nxt_mem_munmap(mem, PORT_MMAP_SIZE);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user