Mercurial > hg > nginx
diff src/core/ngx_file.h @ 5316:12dd27b74117
Fixed memory leaks in the root and auth_basic_user_file directives.
If a relative path is set by variables, then the ngx_conf_full_name()
function was called while processing requests, which causes allocations
from the cycle pool.
A new function that takes pool as an argument was introduced.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 06 Aug 2013 19:58:40 +0400 |
parents | 8a9b7b4e9f2d |
children | a9138c35120d |
line wrap: on
line diff
--- a/src/core/ngx_file.h Mon Aug 05 14:30:03 2013 +0400 +++ b/src/core/ngx_file.h Tue Aug 06 19:58:40 2013 +0400 @@ -122,6 +122,9 @@ }; +ngx_int_t ngx_get_full_name(ngx_pool_t *pool, ngx_str_t *prefix, + ngx_str_t *name); + ssize_t ngx_write_chain_to_temp_file(ngx_temp_file_t *tf, ngx_chain_t *chain); ngx_int_t ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_pool_t *pool, ngx_uint_t persistent, ngx_uint_t clean,