From 14827c7c6f83eaf74dc87d2132c0125f0d5d3f8e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 24 Sep 2003 19:51:12 +0000 Subject: nginx-0.0.1-2003-09-24-23:51:12 import --- src/core/ngx_alloc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') 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 -- cgit