Re: PQclear question... - Mailing list pgsql-general

From Tom Lane
Subject Re: PQclear question...
Date
Msg-id 20019.991175457@sss.pgh.pa.us
Whole thread Raw
In response to PQclear question...  ("Tim Barnard" <tbarnard@povn.com>)
List pgsql-general
"Tim Barnard" <tbarnard@povn.com> writes:
> Is it necessary to call PQclear if a query that
> would normally return tuples fails?

If you got a non-NULL result from PQexec, you'd better PQclear it,
or suffer the consequences (memory leak -> eventual application crash).

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Timezones on HPUX
Next
From: "Tim Barnard"
Date:
Subject: Re: PQclear question...