Hi,
I noticed a minor memleak in pg_dump. ReadStr() returns a malloc'ed pointer which
should then be freed. While reading the Table of Contents, it was called as an argument
within a function call, leading to a memleak.
Please accept the attached as a proposed fix.
Cheers,
//Georgios