diff options
Diffstat (limited to 'src/core/ngx_alloc.c')
-rw-r--r-- | src/core/ngx_alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_alloc.c b/src/core/ngx_alloc.c index 311a34e26..02c9342ac 100644 --- a/src/core/ngx_alloc.c +++ b/src/core/ngx_alloc.c @@ -67,6 +67,10 @@ void ngx_destroy_pool(ngx_pool_t *pool) #if (NGX_DEBUG_ALLOC) for (p = pool, n = pool->next; /* void */; p = n, n = n->next) { ngx_log_debug(pool->log, "free: %08x" _ p); + + if (n == NULL) { + break; + } } #endif |