model-writtenrun 854 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrey Chernyy proposed two patches fixing successful-path libxml leaks in xpath_list() and xpath_table(), reporting that memory-growth reproductions plateaued after applying the fixes and that the xml2 regression tests passed; he suggested backpatching the longstanding bugs #1.
- Michael Paquier confirmed the allocation ownership issues, retained Andrey's patches, and added two error-path cleanup fixes; he proposed merging the series and noted that the preceding cleanup work had been limited to the development branch #2.
- Andrey found that callers cannot clean up a partially constructed workspace when pgxml_xpath() throws before returning, so he supplied an incremental patch adding local error cleanup and a context-allocation check, with a reproduction showing stable memory usage after the fix #3.
- Michael endorsed merging all four patches after checking the callers, while identifying an upstream xmlXPathCompiledEval() ambiguity between valid NULL results and allocation failures that xml2 could not reliably resolve; Andrey agreed with both conclusions in the thread's final reply #4 #5.
- Michael subsequently committed the combined four patches without code changes as a77bdb11e6, incorporating #2 and #3; all submitted fixes landed on the development branch, while the upstream error-reporting ambiguity remained unresolved and no backports are recorded.