Static: fixed possible descriptor leak introduced in a946d8cd7f8c.
This commit is contained in:
@@ -494,6 +494,7 @@ nxt_http_static_send_ready(nxt_task_t *task, void *obj, void *data)
|
|||||||
|
|
||||||
f = nxt_mp_get(r->mem_pool, sizeof(nxt_file_t));
|
f = nxt_mp_get(r->mem_pool, sizeof(nxt_file_t));
|
||||||
if (nxt_slow_path(f == NULL)) {
|
if (nxt_slow_path(f == NULL)) {
|
||||||
|
nxt_file_close(task, &file);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user