diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-06-20 19:49:17 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-06-20 19:49:17 +0300 |
commit | f888a5310c1808902b4035ca3454b62bc5cf4434 (patch) | |
tree | 7425e11cdba27420d21468b0f79787834bd3c498 /src/nxt_conn.c | |
parent | c7ab908c19242a5ddd0233e123e8c2be210b3c02 (diff) | |
download | unit-f888a5310c1808902b4035ca3454b62bc5cf4434.tar.gz unit-f888a5310c1808902b4035ca3454b62bc5cf4434.tar.bz2 |
Using new memory pool implementation.
Diffstat (limited to 'src/nxt_conn.c')
-rw-r--r-- | src/nxt_conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_conn.c b/src/nxt_conn.c index 3f21747e..bba2bfd1 100644 --- a/src/nxt_conn.c +++ b/src/nxt_conn.c @@ -42,12 +42,12 @@ nxt_conn_io_t nxt_unix_conn_io = { nxt_conn_t * -nxt_conn_create(nxt_mem_pool_t *mp, nxt_task_t *task) +nxt_conn_create(nxt_mp_t *mp, nxt_task_t *task) { nxt_conn_t *c; nxt_thread_t *thr; - c = nxt_mem_zalloc(mp, sizeof(nxt_conn_t)); + c = nxt_mp_zget(mp, sizeof(nxt_conn_t)); if (nxt_slow_path(c == NULL)) { return NULL; } |