Dmitry Kovalenko <d.kovalenko@postgrespro.ru> writes:
> As I understand, you have leaks of 'res' when (PQresultStatus(res) !=
> status)
I don't think we really care about leaks when pg_fatal is called.
(If we do, there are a lot of others to worry about.)
> I spent the some time to fix a leaks in tests and PG itself here:
> https://github.com/dmitry-lipetsk/postgres/commits/D20250617_001-pg_master/
Ah, I did not know you were working on this. Perhaps you can merge
what we've done.
regards, tom lane