model-writtenrun 3412 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ranier Vilela reported a Coverity-detected leak in run_ssl_passphrase_command() and proposed saving and freeing the string returned by wait_result_to_str() in #1; Daniel Gustafsson considered the fix reasonable when the reporting level is LOG in #2.
- Ranier supplied a separate fix for shell_archive_file() in #3, adding explicit frees of xlogarchcmd on both successful and unsuccessful return paths.
- Daniel explained in #4 that he had deferred the fixes until after the freeze to avoid unnecessary rebasing, then reported preparing both for commit in #6 after Ranier asked about inclusion in PostgreSQL 17 in #5.
- Michael Paquier endorsed both fixes in #7, noting that LOG-level reporting or a backend-lifetime memory context could allow even small leaks to accumulate.
- Daniel committed both attachments together as b362d14816, preserving the shell_archive.c changes from #3 and making only a pointer-declaration correction and formatting adjustment to #1; he announced the push in #8, and Ranier thanked him in #9, leaving both fixes landed.