*) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
index 3d8730a..47358ed 100644
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -261,7 +261,7 @@
}
}
- line = ngx_palloc(r->pool, len);
+ line = ngx_pnalloc(r->pool, len);
if (line == NULL) {
return NGX_ERROR;
}
@@ -970,7 +970,7 @@
} else {
op->run = ngx_http_log_copy_long;
- p = ngx_palloc(cf->pool, len);
+ p = ngx_pnalloc(cf->pool, len);
if (p == NULL) {
return NGX_CONF_ERROR;
}