pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Clear SSL_hosts when destroying TLS 2+ messages / 1 participants [nested] [flat]
* pgsql: Clear SSL_hosts when destroying TLS @ 2026-10-06 11:52 Daniel Gustafsson <dgustafsson@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Daniel Gustafsson @ 2026-10-06 11:52 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <jacob.champion@enterprisedb.com> Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com> Reviewed-by: Rui Zhao <zhaorui126@gmail.com> Discussion: https://postgr.es/m/CAOYmi+mAtEn4wN3xx=r4TaY5AHy9_q9XncM8YQLhofE3op0SvA@mail.gmail.com Backpatch-through: 19 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ff684b6be258ab535f77df7b86d8252c1e72a421 Modified Files -------------- src/backend/libpq/be-secure-openssl.c | 7 +++++++ 1 file changed, 7 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Clear SSL_hosts when destroying TLS @ 2026-10-06 11:52 Daniel Gustafsson <dgustafsson@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Daniel Gustafsson @ 2026-10-06 11:52 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <jacob.champion@enterprisedb.com> Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com> Reviewed-by: Rui Zhao <zhaorui126@gmail.com> Discussion: https://postgr.es/m/CAOYmi+mAtEn4wN3xx=r4TaY5AHy9_q9XncM8YQLhofE3op0SvA@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(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-10-06 11:52 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-06 11:52 pgsql: Clear SSL_hosts when destroying TLS Daniel Gustafsson <dgustafsson@postgresql.org> 2026-10-06 11:52 pgsql: Clear SSL_hosts when destroying TLS Daniel Gustafsson <dgustafsson@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox