Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
5315:31932b5464f0 | 5316:12dd27b74117 |
---|---|
120 | 120 |
121 ngx_log_t *log; | 121 ngx_log_t *log; |
122 }; | 122 }; |
123 | 123 |
124 | 124 |
125 ngx_int_t ngx_get_full_name(ngx_pool_t *pool, ngx_str_t *prefix, | |
126 ngx_str_t *name); | |
127 | |
125 ssize_t ngx_write_chain_to_temp_file(ngx_temp_file_t *tf, ngx_chain_t *chain); | 128 ssize_t ngx_write_chain_to_temp_file(ngx_temp_file_t *tf, ngx_chain_t *chain); |
126 ngx_int_t ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, | 129 ngx_int_t ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, |
127 ngx_pool_t *pool, ngx_uint_t persistent, ngx_uint_t clean, | 130 ngx_pool_t *pool, ngx_uint_t persistent, ngx_uint_t clean, |
128 ngx_uint_t access); | 131 ngx_uint_t access); |
129 void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len); | 132 void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len); |