| From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Clear SSL_hosts when destroying TLS |
| Date: | 2026-10-06 11:52:22 |
| Message-ID: | E1xE3iY-00000000Y0C-31zX@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)champion(at)enterprisedb(dot)com>
Reviewed-by: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Reviewed-by: Rui Zhao <zhaorui126(at)gmail(dot)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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-10-06 11:52:32 | pgsql: Clear SSL_hosts when destroying TLS |
| Previous Message | Etsuro Fujita | 2026-10-06 09:35:20 | pgsql: postgres_fdw: Fix typo in server version check in AcquireSampleR |