]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proxy: fix source interface and usesrc leaks on deinit()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 10 Jun 2024 17:23:36 +0000 (19:23 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Jun 2024 08:59:33 +0000 (10:59 +0200)
commit1aa219078dbaeef402b43af24538078fdd875790
treeb84726755223bd47a3914d4f4aa687bc63ee11d4
parent6f53df3fcfe3dc7220cff862d3ded1601f642931
BUG/MINOR: proxy: fix source interface and usesrc leaks on deinit()

proxy conn_src.iface_name was only freed in proxy_free_defaults(), whereas
proxy conn_src.bind_hdr_name was only freed in free_proxy().

Because of that, using "source usesrc hdr_ip()" in a default proxy, or
"source interface" in a regular or default proxy would cause memory leaks
during deinit.

It may be backported to all stable versions.
src/proxy.c