comparison src/core/ngx_palloc.c @ 26:45fe5b98a9de NGINX_0_1_13

nginx 0.1.13 *) 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 <http://sysoev.ru>
date Tue, 21 Dec 2004 00:00:00 +0300
parents 46833bd150cb
children aab2ea7c0458
comparison
equal deleted inserted replaced
25:21488c53e135 26:45fe5b98a9de
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 }