mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-05 15:27:44 -04:00
port_range was never freed. That used not to be a problem, but now that we can dynamically add and remove servers, it becomes one, as that leads to a memory leak each time a server with a "source" directive is destroyed. However, just adding a free() is not enough. We have to add a refcount, because the server is not the only one with a reference to it. We may also have one in fdinfo, so that we know which port to release when we finally close the fd. So add a refcount, and make sure to call port_range_release() when a server is destroyed. This should be backported up to 3.0. |
||
|---|---|---|
| .. | ||
| haproxy | ||
| import | ||
| make | ||