]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proxy: add missing interface bind free in free_proxy
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 1 Jun 2023 08:58:44 +0000 (10:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Jun 2023 13:15:17 +0000 (15:15 +0200)
commit9be9225ef288d707ba8e446c77ff822a521cbb4e
treed0d5fccf816176e06456113137dc3039d7a6865b
parentc49224a29df65d81399058d2bb6cd36056915239
BUG/MINOR: proxy: add missing interface bind free in free_proxy

bind->settings.interface hint is allocated when "interface" keyword
is specified on a bind line, but the string isn't explicitly freed in
proxy_free, resulting in minor memory leak on deinit paths when the
keyword is being used.

It partially fixes GH #2173 and may be backported to all stable versions.

[in 2.2 free_proxy did not exist so the patch must be applied directly
in deinit() function from haproxy.c]
src/proxy.c