model-writtenrun 8640 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhang, Jie reported four leaked PQExpBuffer objects in getDefaultACLs() and supplied a patch to destroy them after constructing the default-ACL query #1.
- Masahiko Sawada endorsed the patch and traced the oversight to a change that had been backpatched to PostgreSQL 9.6 #2.
- Michael Paquier observed that other buildACLQueries() callers cleaned up their buffers, supported doing so even in a short-lived utility, and proposed backpatching the fix #3.
- Michael Paquier committed the patch from #1 with only a whitespace adjustment as 8f4ee44bcd, crediting Jie Zhang as author and Sawada Masahiko as reviewer and backpatching through PostgreSQL 9.6.
- Michael Paquier confirmed completion in #4, leaving no outstanding patch or unresolved question in the thread.