# HG changeset patch # User Igor Sysoev # Date 1138824111 0 # Node ID 77cdfe394a94a625955e7585e09983b3af9b889b # Parent c0a5da7c4044821782852b10f67c32ad5bd49aa4 nginx-0.3.25-RELEASE import *) Bugfix: the segmentation fault was occurred on start or while reconfiguration if there was invalid configuration; the bug had appeared in 0.3.24. diff -r c0a5da7c4044 -r 77cdfe394a94 docs/xml/nginx/changes.xml --- a/docs/xml/nginx/changes.xml Wed Feb 01 18:22:15 2006 +0000 +++ b/docs/xml/nginx/changes.xml Wed Feb 01 20:01:51 2006 +0000 @@ -9,6 +9,24 @@ nginx changelog + + + + +при неверной конфигурации на старте или во время переконфигурации происходил +segmentation fault; +ошибка появилась в 0.3.24. + + +the segmentation fault was occurred on start or while reconfiguration +if there was invalid configuration; +bug appeared in 0.3.24. + + + + + + diff -r c0a5da7c4044 -r 77cdfe394a94 src/core/nginx.h --- a/src/core/nginx.h Wed Feb 01 18:22:15 2006 +0000 +++ b/src/core/nginx.h Wed Feb 01 20:01:51 2006 +0000 @@ -8,7 +8,7 @@ #define _NGINX_H_INCLUDED_ -#define NGINX_VER "nginx/0.3.24" +#define NGINX_VER "nginx/0.3.25" #define NGINX_VAR "NGINX" #define NGX_OLDPID_EXT ".oldbin" diff -r c0a5da7c4044 -r 77cdfe394a94 src/core/ngx_cycle.c --- a/src/core/ngx_cycle.c Wed Feb 01 18:22:15 2006 +0000 +++ b/src/core/ngx_cycle.c Wed Feb 01 20:01:51 2006 +0000 @@ -613,7 +613,10 @@ static void ngx_destroy_cycle_pools(ngx_conf_t *conf) { - ngx_shm_free(&conf->cycle->shm); + if (conf->cycle->shm.addr) { + ngx_shm_free(&conf->cycle->shm); + } + ngx_destroy_pool(conf->temp_pool); ngx_destroy_pool(conf->pool); }