Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
476:7e8b84ab09e9 | 477:ad1e9ebf93bb |
---|---|
34 for (l = pool->large; l; l = l->next) { | 34 for (l = pool->large; l; l = l->next) { |
35 | 35 |
36 ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0, "free: %p", l->alloc); | 36 ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0, "free: %p", l->alloc); |
37 | 37 |
38 if (l->alloc) { | 38 if (l->alloc) { |
39 free(l->alloc); | 39 ngx_free(l->alloc); |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 #if (NGX_DEBUG) | 43 #if (NGX_DEBUG) |
44 | 44 |
57 } | 57 } |
58 | 58 |
59 #endif | 59 #endif |
60 | 60 |
61 for (p = pool, n = pool->next; /* void */; p = n, n = n->next) { | 61 for (p = pool, n = pool->next; /* void */; p = n, n = n->next) { |
62 free(p); | 62 ngx_free(p); |
63 | 63 |
64 if (n == NULL) { | 64 if (n == NULL) { |
65 break; | 65 break; |
66 } | 66 } |
67 } | 67 } |
161 | 161 |
162 for (l = pool->large; l; l = l->next) { | 162 for (l = pool->large; l; l = l->next) { |
163 if (p == l->alloc) { | 163 if (p == l->alloc) { |
164 ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0, | 164 ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, pool->log, 0, |
165 "free: %p", l->alloc); | 165 "free: %p", l->alloc); |
166 free(l->alloc); | 166 ngx_free(l->alloc); |
167 l->alloc = NULL; | 167 l->alloc = NULL; |
168 | 168 |
169 return NGX_OK; | 169 return NGX_OK; |
170 } | 170 } |
171 } | 171 } |