]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: deinit: free server map which is allocated in init_server_map()
authorGodbach <nylzhaowei@gmail.com>
Wed, 2 Oct 2013 09:10:11 +0000 (17:10 +0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Oct 2013 11:34:09 +0000 (13:34 +0200)
commitaf1a75d2c992411b947d1c0ebc2a1d7f1454ed04
tree1932402867e27abcadb19149fb2a488b700d05ea
parent2b8fd54287efef535b6a212a4a4ed35e4a333a24
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]
src/haproxy.c