Ranier VF <ranier_gyn(at)hotmail(dot)com> writes:
> In [d:\pginstaller.auto\postgres.windows\src\interfaces\libpq\fe-connect.c,
> closePGconn(PGconn *conn):
> Does not check if conn is NULL.
All the callers do, so I don't entirely see your point.
The stack traces you show look to me like the fault is probably in
the caller, ie, calling PQfinish twice on the same "conn".
regards, tom lane