Re: [HACKERS] (libpq) PQclear on questionable result pointer.

2002-08-30 Thread Tom Lane
wade <[EMAIL PROTECTED]> 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

[HACKERS] (libpq) PQclear on questionable result pointer.

2002-08-30 Thread wade
Greets all, While attempting to clean up some memory leaks, I have encountered some difficulties. In the code for PQclear() we have the check: if (!res) return; The problem arrises when the result object pointer you are passing to clear contains not a null and not a valid result obj