summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Lallemand <wlallemand@haproxy.org>2021-08-24 15:09:15 +0200
committerWilliam Lallemand <wlallemand@haproxy.org>2021-08-24 15:11:03 +0200
commit76ad371b869feb2f14ef375445ec49cc3b589801 (patch)
tree5f5db20174691305c67528d37eda651d864671b2
parentece4c4a35265cbc28d25826205ee66dbf9ac6f7d (diff)
downloadhaproxy-76ad371b869feb2f14ef375445ec49cc3b589801.tar.gz
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.
-rw-r--r--src/http_client.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/http_client.c b/src/http_client.c
index 582348f6b..478a3da07 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);