diff options
| author | Andrei Belov <defan@nginx.com> | 2020-02-06 18:25:25 +0300 |
|---|---|---|
| committer | Andrei Belov <defan@nginx.com> | 2020-02-06 18:25:25 +0300 |
| commit | 2dc01938cf02cc05b41a09e618f712129c4cdf91 (patch) | |
| tree | 556dd40a0ec8c194774d53eed9ff62ed1d25ee7c /src/nxt_buf_pool.c | |
| parent | 477a58e14010ab14d6ab453860b360cf806f5012 (diff) | |
| parent | 6e19090736612b39d4c5d0836d7df0722b8955e7 (diff) | |
| download | unit-1.15.0-1.tar.gz unit-1.15.0-1.tar.bz2 | |
Merged with the default branch.1.15.0-1
Diffstat (limited to 'src/nxt_buf_pool.c')
| -rw-r--r-- | src/nxt_buf_pool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_buf_pool.c b/src/nxt_buf_pool.c index 8259c60a..f2be88a7 100644 --- a/src/nxt_buf_pool.c +++ b/src/nxt_buf_pool.c @@ -172,11 +172,12 @@ nxt_buf_pool_free(nxt_buf_pool_t *bp, nxt_buf_t *b) void nxt_buf_pool_destroy(nxt_buf_pool_t *bp) { - nxt_buf_t *b; + nxt_buf_t *b, *n; bp->destroy = 1; - for (b = bp->free; b != NULL; b = b->next) { + for (b = bp->free; b != NULL; b = n) { + n = b->next; nxt_buf_free(bp->mem_pool, b); } |
