]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: haproxy: free init_env in deinit only if allocated
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Fri, 23 Aug 2024 16:54:31 +0000 (18:54 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 23 Aug 2024 17:08:53 +0000 (19:08 +0200)
commit28ca7fc594ca643895e2a28bb3e3ed021475a704
tree3b7ae702ccf8f84f3c3b4f8bb573f44a63b058c0
parent7b78e1571b97216cdf4979b561cd1fa12bcd7e0f
BUG/MINOR: haproxy: free init_env in deinit only if allocated

This fixes 7b78e1571 (" MINOR: mworker: restore initial env before wait
mode").

In cases, when haproxy starts without any configuration, for example:
'haproxy -vv', init_env array to backup env variables is never allocated. So,
we need to check in deinit(), when we free its memory, that init_env is not a
NULL ptr.
src/haproxy.c