]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: uri_auth: implement clean uri_auth cleaning
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 13 Nov 2024 18:54:32 +0000 (19:54 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 14 Nov 2024 14:03:38 +0000 (15:03 +0100)
commit42710b73200c4828ade2b1ffab582506f05a9731
treebb0def462e4ab11043ddeea3c2ed723c2e900bec
parente1ec37ea5191836ed1d3ef85ff2ea76b2f8384e1
MEDIUM: uri_auth: implement clean uri_auth cleaning

proxy auth_uri struct was manually cleaned up during deinit, but the logic
behind was kind of akward because it was required to find out which ones
were shared or not. Instead, let's switch to a proper refcount mechanism
and free the auth_uri struct directly in proxy_free_common().
include/haproxy/uri_auth-t.h
include/haproxy/uri_auth.h
src/cfgparse-listen.c
src/cfgparse.c
src/haproxy.c
src/proxy.c
src/uri_auth.c