BUG/MINOR: ssl: free the fields in srv->ssl_ctx
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 30 Dec 2021 10:25:43 +0000 (11:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Jan 2022 14:23:28 +0000 (15:23 +0100)
commit8ccdbad9967b08b1f5afe89b461335b16436ecdb
treecf91542763adc97e7a2c15649a307e643194c099
parent6ad8a73dfb0499dd6e95d98a4169166dbbc2c584
BUG/MINOR: ssl: free the fields in srv->ssl_ctx

A lot of free are missing in ssl_sock_free_srv_ctx(), this could result
in memory leaking when removing dynamically a server via the CLI.

This must be backported in every branches, by removing the fields that
does not exist in the previous branches.

(cherry picked from commit 231610ad9ccc2470930f7a728ba710a548677a65)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_sock.c