From: William Lallemand Date: Tue, 24 Aug 2021 13:09:15 +0000 (+0200) Subject: BUG/MINOR: httpclient: remove deinit of the httpclient X-Git-Tag: v2.5-dev5~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76ad371b869feb2f14ef375445ec49cc3b589801;p=thirdparty%2Fhaproxy.git BUG/MINOR: httpclient: remove deinit of the httpclient The httpclient does a free of the servers and proxies it uses, however since we are including them in the global proxy list, haproxy already free them during the deinit. We can safely remove these free. --- diff --git a/src/http_client.c b/src/http_client.c index 582348f6bf..478a3da07f 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -759,16 +759,7 @@ err: return 1; } -static void httpclient_deinit() -{ - free_server(httpclient_srv_raw); - free_server(httpclient_srv_ssl); - free_proxy(httpclient_proxy); - -} - /* initialize the proxy and servers for the HTTP client */ INITCALL0(STG_REGISTER, httpclient_init); REGISTER_CONFIG_POSTPARSER("httpclient", httpclient_cfg_postparser); -REGISTER_POST_DEINIT(httpclient_deinit);