]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: errors: startup_logs_free: set global startup_logs ptr to NULL
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 28 Oct 2024 15:03:44 +0000 (16:03 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 29 Oct 2024 17:17:49 +0000 (18:17 +0100)
commitbf8c871e26c226a7c0bdbf6afe9a9bd8398c4f5d
tree8c37a7a1c736b2330b93f7222c05fd9191c50e89
parentcd57ee7ffa454315d37ee30548eab5853e521db8
BUG/MINOR: errors: startup_logs_free: set global startup_logs ptr to NULL

ring_free() calls free() on the ring struct pointer, but startup_logs continues
to keep this address. So let's reset at the end startup_logs to NULL.
startup_logs is checked in print_message().

No need to backport this fix, as it's related to the latest master-worker
refactoring.
src/errors.c