]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: Don't allow to change backend applet
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Apr 2022 08:28:30 +0000 (10:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Apr 2022 12:14:27 +0000 (14:14 +0200)
commitbb5b62ee5c0ce5077559c6f42ad1fb4451bf95de
tree66b00d7ca66fd88830aa98f8956d1b4e9a390fc6
parent1d216c7ec1815c510bd3c6a1152cf41f748f93e0
BUG/MINOR: backend: Don't allow to change backend applet

This part was inherited from haproxy-1.5. But since a while (at least 1.8),
the backend applet, once created, is no longer changed. Thus there is no
reason to still check if the target has changed. And in fact, if it was
still possible, there would be a memory leak because the old applet would be
lost and never released.

There is no reason to backport this fix because the leak only exists on a
dead code path.
src/backend.c