The following script, when built with addresssanitizer, fails with a DoubleFree error. reproduce on master (d3bba0415435)
Thanks for the report. To be honest, I’m not sure where to start debugging it - but I plan to give it a go. I’m curious if it fails for “\pset null ‘N’” “\g (null=csv)” too and I just got bit by inheriting its layout. Don’t see why these new ones would be different.
Had issues getting a server to run meson+asan but did get psql to do so and confirmed.
I just didn't find all of the patterns.
savePsetInfo and restorePsetInfo need explicit knowledge of these options as well to clean up the popt struct.