Matt Carter wrote:
> Tom, since your C test showed no leak, the issue is likely in how psycopg2 calls libpq, not pure libpq itself.
FYI, I have reported the issue to the psycopg project:
https://github.com/psycopg/psycopg2/issues/1827
Thanks you for your help, Tom. Your test results helped show that this is likely a psycopg2 issue.
Cheers,
Matt