]> git.kaiwu.me - nginx.git/commit
Core: fixed environment variables on exit.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 19 Jul 2023 02:09:23 +0000 (05:09 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 19 Jul 2023 02:09:23 +0000 (05:09 +0300)
commit9e1a000f2bb5d32d0fa8ff804ce8a0f7539694d7
treea4842e77f90d1ee77f779f3fc127dbb1431e1382
parent4d3a9cc11fb883a7fa8b4f1859047acc121741d3
Core: fixed environment variables on exit.

Similarly to 6822:c045b4926b2c, environment variables introduced with
the "env" directive (and "NGINX_BPF_MAPS" added by QUIC) are now allocated
via ngx_alloc(), and explicitly freed by a cleanup handler if no longer used.

In collaboration with Sergey Kandaurov.
src/core/nginx.c