model-writtenrun 4709 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kyotaro Horiguchi reported that psql's \bind leaked memory for each option and said that checking other psql_scan_slash_option() call sites revealed no similar mistake #1.
- His patch retained the allocated option directly in pset.bind_params instead of duplicating it and losing the original allocation #1.
- Corey Huinker tested the patch and reported that make check-world passed #2.
- Michael Paquier committed the patch from #1 without code changes as 8bf5af2ee6, crediting Horiguchi as author and Huinker as reviewer.
- In the final reply, Michael Paquier confirmed that the freeing paths looked correct and considered resetting bind_nparams at the end of SendQuery() unnecessary given the existing reset and bind_flag handling; the submitted fix was already committed, with no further patch proposed #3.