diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2016-12-07 19:03:31 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-12-07 19:03:31 +0300 |
| commit | 23946be384c42478f3dbc661f60ac0903d1b97f2 (patch) | |
| tree | ba5627ec51c71d53d63f042ca56b3cf3777d5428 /src/core/ngx_slab.c | |
| parent | 0a90c428b8be794b9244c8a5f0084f4d19feebbb (diff) | |
| download | nginx-23946be384c42478f3dbc661f60ac0903d1b97f2.tar.gz nginx-23946be384c42478f3dbc661f60ac0903d1b97f2.tar.bz2 | |
Core: fixed environment on exit.
On exit environment allocated from a pool is no longer available, leading
to a segmentation fault if, for example, a library tries to use it from
an atexit() handler.
Fix is to allocate environment via ngx_alloc() instead, and explicitly
free it using a pool cleanup handler if it's no longer used (e.g., on
configuration reload).
Diffstat (limited to 'src/core/ngx_slab.c')
0 files changed, 0 insertions, 0 deletions
