Mar 2026

1 commit
Avoid memory leak on error while parsing pg_stat_statements dump file
27 Mar 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.4REL_17_STABLE17.10REL_16_STABLE16.14REL_15_STABLE15.18REL_14_STABLE14.23
LLM analysis, 100% surelanded as postedfrom patchset #61 of 2 reviewers saw the final version

All nine code hunks in 25b02320e1 match #6, with only base-dependent line offsets differing. The patch uses palloc_extended with MCXT_ALLOC_HUGE | MCXT_ALLOC_NO_OOM and replaces corresponding frees with pfree, adding NULL guards where necessary.

  • Lukas Fittlsaw an earlier versiontrailerIn #2, Lukas corrected the lock-leak diagnosis and analyzed malloc cleanup and OOM behavior before the attached implementation; his post-commit reply #9 only acknowledged the fix.
  • Daniel Gustafssonsaw the final versiontrailerDaniel proposed palloc_extended with MCXT_ALLOC_NO_OOM in #4 and explicitly approved the attached patch #6 in #7.

Credits across 1 commit

Author
Heikki LinnakangasLLM1
Reviewer
Daniel Gustafsson1
Lukas Fittl1
Reported by
Gaurav Singh1
Committer
Heikki Linnakangas1

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