mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-24 13:42:16 +00:00
BUG/MINOR: deinit: free server map which is allocated in init_server_map()
Both static-rr and hash with type map-based call init_server_map() to allocate server map, so the server map should be freed while doing cleanup if one of the above load balance algorithms is used. Signed-off-by: Godbach <nylzhaowei@gmail.com> [wt: removed the unneeded "if" before the free]
This commit is contained in:
parent
2b8fd54287
commit
af1a75d2c9
@ -975,6 +975,7 @@ void deinit(void)
|
||||
free(p->conf.lfs_file);
|
||||
free(p->conf.uniqueid_format_string);
|
||||
free(p->conf.uif_file);
|
||||
free(p->lbprm.map.srv);
|
||||
|
||||
for (i = 0; i < HTTP_ERR_SIZE; i++)
|
||||
chunk_destroy(&p->errmsg[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user