Clear SSL_hosts when destroying TLS The loaded SSL_CTX objects were cleared on SSL initialization but not when destroying the TLS objects via be_tls_destroy(). This would not leak the contexts, but consume memory for no reason.
Reported-by: Jacob Champion <[email protected]> Reviewed-by: Zsolt Parragi <[email protected]> Reviewed-by: Rui Zhao <[email protected]> Discussion: https://postgr.es/m/CAOYmi+mAtEn4wN3xx=r4tay5ahy9_q9xncm8yqlhofe3op0...@mail.gmail.com Backpatch-through: 19 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d45dc682e81b2ff5a9f57129b3fa25fb2de5f195 Modified Files -------------- src/backend/libpq/be-secure-openssl.c | 7 +++++++ 1 file changed, 7 insertions(+)
