model-writtenrun 8616 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhang, Jie reported two error paths that leaked the query result in RetrieveWalSegSize() and supplied a patch adding the missing cleanup calls #1.
- Michael Paquier explained that the practical impact was small because pg_basebackup and pg_receivewal call the function only once at startup, while agreeing that the leak should be fixed #2.
- Michael Paquier supplied a revised patch that retained cleanup on parsing failure and moved the existing cleanup immediately after successful parsing, also covering subsequent validation failure #2.
- Zhang, Jie agreed with the revised cleanup placement #3.
- Michael Paquier committed the revised patch #2 unchanged as 198efe774b, credited Jie Zhang, and arranged backpatching through PostgreSQL 11; his final reply confirmed the fix was complete #4.