]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: call EXTRA_COUNTERS_FREE() before srv_free_params() in srv_drop()
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 16:18:41 +0000 (17:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 16:24:59 +0000 (17:24 +0100)
commit9db62d408a2011253ecd5ba748039fb30265b773
treef355cbc9652521c6c7f3b9cb727c376f224a4725
parentb604064980ff4bd80cb829dfcc50eb26b975edec
BUG/MINOR: call EXTRA_COUNTERS_FREE() before srv_free_params() in srv_drop()

As seen with the last changes to counters allocation, the move of the
counters storage to the thread group as operated in commit 04a9f86a85
("MEDIUM: counters: add a dedicated storage for extra_counters in various
structs") causes some random errors when using ASAN, because the extra
counters are freed in srv_drop() after calling srv_free_params(), which
is responsible for freeing the per-thread group storage.

For the proxies however it's OK because free calls are made before the
call to deinit_proxy() which frees the per_tgrp area.

No backport is needed, this is purely 3.4-dev.
src/server.c