Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation? - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?
Date
Msg-id 20020506110051.GE17805@feivel.credativ.de
Whole thread Raw
In response to Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?  (Lee Kindness <lkindness@csl.co.uk>)
List pgsql-interfaces
On Mon, May 06, 2002 at 11:24:36AM +0100, Lee Kindness wrote:
> If I allocate the memory before the FETCH then I (naturally) free
> it. However If I NULL initialise the pointer then libecpg will
> allocate the memory and I must NOT free it - libecpg will free it
> automatically... Yeah?

No. No matter who allocates the memory. You have to free it yourself.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: Michael Meskes
Date:
Subject: Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?
Next
From: "Leslie Herps"
Date:
Subject: [ERROR] pgsql_perl5