BUG/MINOR: backend: free allocated bind_addr if reuse conn
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 2 Mar 2021 11:01:06 +0000 (12:01 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Mar 2021 10:28:02 +0000 (11:28 +0100)
commit68967e595b4bcd4aaab998fcf96f1e1aeb2b68a5
tree4d948c631b52ddc4e34ba87b2686c2d991097017
parent603657835fa4617a9caf61713a632236101f0a14
BUG/MINOR: backend: free allocated bind_addr if reuse conn

Fix a leak in connect_server which happens when a connection is reused
and a bind_addr was allocated because transparent mode is active. The
connection has already an allocated bind_addr so free the newly
allocated one.

No backport needed.
src/backend.c