BUG/MINOR: deinit: release uri_auth admin rules
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 13 Nov 2024 17:26:34 +0000 (18:26 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 14 Nov 2024 14:03:27 +0000 (15:03 +0100)
commit350a3ab052e94d8b1ce1f526705a352cfd7d451c
tree78b59b9831e3c7f13ac57fe73aafff57f3900663
parentdf93cf72b9995c9580649e6e69a82692decc3f83
BUG/MINOR: deinit: release uri_auth admin rules

When uri_auth admin rules were implemented in 474be415
("[MEDIUM] stats: add an admin level") no attempt was made to free the
list of allocated rules, which makes valgrind unhappy upon deinit when
"stats admin" is used in the config.

To fix the issue, let's cleanup the admin rules list upon deinit where
uri_auth freeing is already handled.

While this could be backported to every stable versions, given how minor
this is and has no impact on the dying process, it is probably not worth
the effort.
src/haproxy.c