Closing leaking file descriptor.
Found by Coverity (CID 349484).
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user