mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
allocate less memory on 64-bit platforms
This commit is contained in:
parent
b8bfa20c91
commit
d1a0ee7fc7
@ -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…
Reference in New Issue
Block a user