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_buf_pool.c | |
parent | c7ab908c19242a5ddd0233e123e8c2be210b3c02 (diff) | |
download | unit-f888a5310c1808902b4035ca3454b62bc5cf4434.tar.gz unit-f888a5310c1808902b4035ca3454b62bc5cf4434.tar.bz2 |
Using new memory pool implementation.
Diffstat (limited to 'src/nxt_buf_pool.c')
-rw-r--r-- | src/nxt_buf_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_buf_pool.c b/src/nxt_buf_pool.c index 092cf58d..7ef9def5 100644 --- a/src/nxt_buf_pool.c +++ b/src/nxt_buf_pool.c @@ -148,7 +148,7 @@ nxt_buf_pool_free(nxt_buf_pool_t *bp, nxt_buf_t *b) } if (!bp->mmap) { - nxt_mem_free(bp->mem_pool, b->mem.start); + nxt_mp_free(bp->mem_pool, b->mem.start); } nxt_buf_free(bp->mem_pool, b); @@ -184,7 +184,7 @@ nxt_buf_pool_destroy(nxt_buf_pool_t *bp) for (b = bp->free; b != NULL; b = b->next) { p = b->mem.start; nxt_buf_free(bp->mem_pool, b); - nxt_mem_free(bp->mem_pool, p); + nxt_mp_free(bp->mem_pool, p); } bp->free = b; /* NULL */ |