summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_port_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index ec4bbdf7..677421e3 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -426,7 +426,7 @@ nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_t *port, size_t size)
nxt_debug(task, "request %z bytes shm buffer", size);
- b = nxt_buf_mem_ts_alloc(task, port->mem_pool, 0);
+ b = nxt_buf_mem_ts_alloc(task, task->thread->engine->mem_pool, 0);
if (nxt_slow_path(b == NULL)) {
return NULL;
}
@@ -436,7 +436,7 @@ nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_t *port, size_t size)
hdr = nxt_port_mmap_get(task, port, &c, size);
if (nxt_slow_path(hdr == NULL)) {
- nxt_mp_release(port->mem_pool, b);
+ nxt_mp_release(task->thread->engine->mem_pool, b);
return NULL;
}