wade <wade(at)wavefire(dot)com> writes:
> The problem arrises when the result object pointer you are passing to clear
> contains not a null and not a valid result object address, but a junk pointer.
> PQclear() seg faults when the address is outside of the data segment.
> (libpq bug?)
No, that's a bug in *your* code. Passing a bogus pointer to any library
anywhere will make it segfault, because there's no reasonable way to
verify a pointer.
regards, tom lane