aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_alloc.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-09-24 19:51:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-09-24 19:51:12 +0000
commit14827c7c6f83eaf74dc87d2132c0125f0d5d3f8e (patch)
tree23356ad7cf5043a46ac450a7b59c9ae5be37b8ff /src/core/ngx_alloc.c
parentcf7e26ba460d22ed1c0934f8e35292f420f1afd9 (diff)
downloadnginx-14827c7c6f83eaf74dc87d2132c0125f0d5d3f8e.tar.gz
nginx-14827c7c6f83eaf74dc87d2132c0125f0d5d3f8e.zip
nginx-0.0.1-2003-09-24-23:51:12 import
Diffstat (limited to 'src/core/ngx_alloc.c')
-rw-r--r--src/core/ngx_alloc.c4
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