BUG/MINOR: ssl: Free global_ssl structure contents during deinit
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 10 Oct 2025 15:05:21 +0000 (17:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Oct 2025 09:05:24 +0000 (11:05 +0200)
commitcf16c54ae0986a2457860d339e23e3f04ab6fe37
tree0f6d6759564b7c9d24efb11265d0c967cc36b431
parentb2cd824a3d48fa279cd49d0ffd609a9f7a8f6e05
BUG/MINOR: ssl: Free global_ssl structure contents during deinit

Some fields of the global_ssl structure are strings that are strdup'ed
but never freed. There is only one static global_ssl structure so not
much memory is used but we might as well free it during deinit.

This patch can be backported to all stable branches.

(cherry picked from commit 9bc6a0349d7dc8b17e407b7360ceddd568ed3d7e)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 03ac586b529198065f8bbe055b0fb50a28b2f3f9)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 22f87b5bc3080cb24a4b7b8e984e6c2c1bf6fc38)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_sock.c