Re: PQclear question...

From: "Tim Barnard" <tbarnard(at)povn(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: PQclear question...
Date: 2001-05-29 22:35:33
Message-ID: 018c01c0e88f$acc47f20$a519af3f@hartcomm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks.

Tim

----- Original Message -----
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>
Sent: Tuesday, May 29, 2001 3:30 PM
Subject: Re: [GENERAL] PQclear question...

> "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

Browse pgsql-general by date

  From Date Subject
Next Message Dr. Evil 2001-05-30 02:58:11 Preventing variables from "rolling over"
Previous Message Stefan Scherf 2001-05-29 22:31:21 7.1.2 faster then 7.1?