]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: startup: certain goto paths in init_pollers fail to free
authorUman Shahzad <uman@mslm.me>
Thu, 17 Jan 2019 08:21:39 +0000 (08:21 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Jan 2019 03:48:48 +0000 (04:48 +0100)
commitda7eeedf386aba82e03ae71bbfac4d3543196844
treeb37e67c7b0afab09879ff53545302937212df752
parent2f167b3543427cba0eef3e93b72424609f95c17a
BUG/MINOR: startup: certain goto paths in init_pollers fail to free

If we fail to initialize pollers due to fdtab/fdinfo/polled_mask
not getting allocated, we free any of those that were allocated
and exit. However the ordering was incorrect, and there was an old
unused and unreachable "fail_cache" path as well, which needs to
be taken when no poller works.

This was introduced with this commit during 1.9-dev :
   cb92f5c ("MINOR: pollers: move polled_mask outside of struct fdtab.")

It needs to be backported to 1.9 only.
src/fd.c