BUG/MINOR: server: free srv.lb_nodes in free_server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Apr 2021 14:48:22 +0000 (16:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Apr 2021 09:10:39 +0000 (11:10 +0200)
commita025fa96b8d520dd7470617e4bcb241ef8e5a112
tree764b5f18c4f7d6f9b0f0be4895b90c00c471f36c
parentedbbe946d05c29972cc279b9cabfe632993b5f88
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.

(cherry picked from commit fb247946a1b0a6dc6b1e6b27631adf1ef40c0ee3)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
[Cf: Patch applied on haproxy.c because servers are freed in deinit()]
(cherry picked from commit 2bf658c0d55b73b175ac736d21aa866674a68a37)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e61f1095e9bfdd24587fcb8bfe517b7da14d1f93)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/haproxy.c