Nov 2024

1 commit
Fix memory leak in pgoutput for the WAL sender
21 Nov 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.3REL_16_STABLE16.7REL_15_STABLE15.11
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #91 of 2 reviewers saw the final version

Compared with #9, ea792bfd93 saves each TupleDesc, drops its slot first, then frees the descriptor, replacing pointer-to-pointer clearing and adding explanatory comments in src/backend/replication/pgoutput/pgoutput.c. Michael Paquier explicitly confirms adopting Hou's cleaner ordering in #10.

  • Michael Paquiersaw the final versiontrailerMichael discussed the original cleanup in #3, reported a subscription test failure in #8, and evaluated and committed the revised fix as described in #10.
  • Hou Zhijiesaw an earlier versiontrailerHou confirmed the bug, identified the original patch's use-after-free, and proposed the ultimately adopted cleanup ordering in #2, with moderate logic changes following his review.

Credits across 1 commit

Author
Boyu Yang1
Reviewer
Hou, Zhijie1
Michael Paquier1
Committer
Michael Paquier1