Re: PQclear question...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tim Barnard" <tbarnard(at)povn(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQclear question...
Date: 2001-05-29 22:30:57
Message-ID: 20019.991175457@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Tim Barnard" <tbarnard(at)povn(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Scherf 2001-05-29 22:31:21 7.1.2 faster then 7.1?
Previous Message Tom Lane 2001-05-29 22:25:42 Re: Timezones on HPUX