Mar 2021

3 commits
Fix memory leak when rejecting bogus DH parameters.
20 Mar 2021Tom Lanemaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13.3+3 more
LLM analysis, 100% surewritten from the discussion, no matching patch

This commit adds DH_free(dh) to three rejection paths in load_dh_file(), whereas the attachment changes initialize_dh() #2. Tom Lane reported discovering and fixing these additional leaks while backpatching the original fix #15; no matching patch was attached.

Fix memory leak when initializing DH parameters in backend
20 Mar 2021Tom LaneREL_12_STABLE12.7REL_11_STABLE11.12REL_10_STABLE10.17
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #21 of 1 reviewer saw the final version

This is the explicitly documented backpatch of e0e569e1d1, retaining the attachment's successful-path cleanup and the additional error-path DH_free(dh) in initialize_dh() #2. The production report and Tom Lane's testing prompted backpatching, which he confirmed in #15.

  • Tom Lanesaw the final versioncommittercommitted the patch
Avoid corner-case memory leak in SSL parameter processing.
16 Mar 2021Tom Lanemaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13.3+3 more
LLM analysis, 100% surewritten from the discussion, no matching patch

The commit moves root_cert_list ownership into the SSL context immediately after loading it in be_tls_init(), preventing leaks on subsequent CRL errors; this is separate from the attached DH cleanup. Jelte reproduced the leak #6, Tom and Andres proposed immediate ownership transfer #7 #8, and Tom undertook the fix #9.

Dec 2019

1 commit
Fix memory leak when initializing DH parameters in backend
14 Dec 2019Michael Paquiermaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #2

The commit preserves the attachment's DH_free(dh) before successful return and adds another before the error return in initialize_dh() #2. Michael explained that Dmitry identified the missing error-path cleanup offline before it was committed #3.

Credits across 4 commits

Author
Michael PaquierLLM2
Reviewer
Tom Lanecommitter1
Reported by
Dmitry Uspenskiy1
Committer
Tom Lane3
Michael Paquier1

N LLM means N of the credits come from LLM analysis, not from commit trailers.