]> git.kaiwu.me - nginx.git/commit
Fixed memory leaks in the root and auth_basic_user_file directives.
authorValentin Bartenev <vbart@nginx.com>
Tue, 6 Aug 2013 15:58:40 +0000 (19:58 +0400)
committerValentin Bartenev <vbart@nginx.com>
Tue, 6 Aug 2013 15:58:40 +0000 (19:58 +0400)
commit3c5bd34771be032ef14e59f934058b3dce93588b
treea71e5b734bca4200959241d928410ba98f48070b
parent1b7bc342186ff0768c06419a134032adb2a536f8
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.
src/core/ngx_conf_file.c
src/core/ngx_file.c
src/core/ngx_file.h
src/http/ngx_http_core_module.c
src/http/ngx_http_script.c
src/http/ngx_http_variables.c