model-writtenrun 8063 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that failed digest initialization could leak memory allocated directly by OpenSSL before PostgreSQL registered the context for cleanup #1.
- His patch added EVP_MD_CTX_destroy(ctx) to the failure path in contrib/pgcrypto/openssl.c, and he proposed backpatching the fix #1.
- The patch landed unchanged as ca2a12c935, with backpatches through PostgreSQL 9.5.
- Michael Paquier reported that no feedback had arrived and confirmed that the fix had been committed and backpatched, completing the proposed work #2.
- He also identified missing compatibility implementations for OpenSSL 0.9.6 in PostgreSQL 9.5 and 9.6, but left that separate issue unfixed because there had been no complaints and such old OpenSSL versions appeared unused #2.