DLZ PG segfaults

David Ford david at blue-labs.org
Thu Nov 2 21:00:53 UTC 2006


Greetings,
I set up DLZ yesterday w/ 9.4b2 and discovered that the DLZ code needed
a bit of love.  PQclear(x) doesn't set x to NULL and some functions were
testing for NULL and working on an invalid pointer.  So to be overly
cautious rather than depend on obscure logic, I set x = NULL at every
instance of PQclear() which solved the segfaults.

Attached is a patch to accomplish this.

David




More information about the bind-users mailing list