Mercurial > hg > nginx
diff src/core/ngx_palloc.c @ 477:ad1e9ebf93bb release-0.1.13
nginx-0.1.13-RELEASE import
*) Feature: the server_names_hash and server_names_hash_threshold
directives.
*) Bugfix: the *.domain.tld names in the "server_name" directive did
not work.
*) Bugfix: the %request_length log parameter logged the incorrect
length.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 12:30:30 +0000 |
parents | a88a3e4e158f |
children | 4ebe09b07e30 |
line wrap: on
line diff
--- a/src/core/ngx_palloc.c +++ b/src/core/ngx_palloc.c @@ -36,7 +36,7 @@ void ngx_destroy_pool(ngx_pool_t *pool) ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0, "free: %p", l->alloc); if (l->alloc) { - free(l->alloc); + ngx_free(l->alloc); } } @@ -59,7 +59,7 @@ void ngx_destroy_pool(ngx_pool_t *pool) #endif for (p = pool, n = pool->next; /* void */; p = n, n = n->next) { - free(p); + ngx_free(p); if (n == NULL) { break; @@ -163,7 +163,7 @@ ngx_int_t ngx_pfree(ngx_pool_t *pool, vo if (p == l->alloc) { ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0, "free: %p", l->alloc); - free(l->alloc); + ngx_free(l->alloc); l->alloc = NULL; return NGX_OK;