BUG/MINOR: server: free srv.lb_nodes in free_server

lb_nodes is allocated for servers using lb_chash (balance random or
hash-type consistent).

It can be backported up to 1.8.
This commit is contained in:
Amaury Denoyelle 2021-04-20 16:48:22 +02:00
parent 8695199aa8
commit fb247946a1

View File

@ -2197,6 +2197,7 @@ void free_server(struct server *srv)
free(srv->curr_idle_thr);
free(srv->resolvers_id);
free(srv->addr_node.key);
free(srv->lb_nodes);
if (srv->use_ssl == 1 || srv->check.use_ssl == 1 || (srv->proxy->options & PR_O_TCPCHK_SSL)) {
if (xprt_get(XPRT_SSL) && xprt_get(XPRT_SSL)->destroy_srv)