comparison src/core/ngx_cycle.c @ 607:77cdfe394a94 release-0.3.25

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.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Feb 2006 20:01:51 +0000
parents 5dac8c7fb71b
children 3f8a2132b93d
comparison
equal deleted inserted replaced
606:c0a5da7c4044 607:77cdfe394a94
611 611
612 612
613 static void 613 static void
614 ngx_destroy_cycle_pools(ngx_conf_t *conf) 614 ngx_destroy_cycle_pools(ngx_conf_t *conf)
615 { 615 {
616 ngx_shm_free(&conf->cycle->shm); 616 if (conf->cycle->shm.addr) {
617 ngx_shm_free(&conf->cycle->shm);
618 }
619
617 ngx_destroy_pool(conf->temp_pool); 620 ngx_destroy_pool(conf->temp_pool);
618 ngx_destroy_pool(conf->pool); 621 ngx_destroy_pool(conf->pool);
619 } 622 }
620 623
621 624