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

From Tim Barnard
Subject Re: PQclear question...
Date
Msg-id 018c01c0e88f$acc47f20$a519af3f@hartcomm.com
Whole thread Raw
In response to PQclear question...  ("Tim Barnard" <tbarnard@povn.com>)
List pgsql-general
Thanks.

Tim

----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Tim Barnard" <tbarnard@povn.com>
Cc: <pgsql-general@postgresql.org>
Sent: Tuesday, May 29, 2001 3:30 PM
Subject: Re: [GENERAL] PQclear question...


> "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: PQclear question...
Next
From: "Dr. Evil"
Date:
Subject: Preventing variables from "rolling over"