comparison src/http/modules/ngx_http_log_module.c @ 2049:2a92804f4109

*) back out r2040 *) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
author Igor Sysoev <igor@sysoev.ru>
date Tue, 17 Jun 2008 15:00:30 +0000
parents 1c009c5a163b
children ee2fecdfdef7
comparison
equal deleted inserted replaced
2048:824615f3b4ec 2049:2a92804f4109
259 259
260 continue; 260 continue;
261 } 261 }
262 } 262 }
263 263
264 line = ngx_palloc(r->pool, len); 264 line = ngx_pnalloc(r->pool, len);
265 if (line == NULL) { 265 if (line == NULL) {
266 return NGX_ERROR; 266 return NGX_ERROR;
267 } 267 }
268 268
269 p = line; 269 p = line;
968 } 968 }
969 969
970 } else { 970 } else {
971 op->run = ngx_http_log_copy_long; 971 op->run = ngx_http_log_copy_long;
972 972
973 p = ngx_palloc(cf->pool, len); 973 p = ngx_pnalloc(cf->pool, len);
974 if (p == NULL) { 974 if (p == NULL) {
975 return NGX_CONF_ERROR; 975 return NGX_CONF_ERROR;
976 } 976 }
977 977
978 ngx_memcpy(p, data, len); 978 ngx_memcpy(p, data, len);