mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 12:21:57 +00:00
allocate less memory on 64-bit platforms
This commit is contained in:
parent
b8bfa20c91
commit
d1a0ee7fc7
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_pool_t *pool,
|
|||
ngx_pool_cleanup_t *cln;
|
||||
ngx_pool_cleanup_file_t *clnf;
|
||||
|
||||
file->name.len = path->name.len + 1 + path->len + NGX_ATOMIC_T_LEN;
|
||||
file->name.len = path->name.len + 1 + path->len + 10;
|
||||
|
||||
file->name.data = ngx_palloc(pool, file->name.len + 1);
|
||||
if (file->name.data == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue