From: | Michael Meskes <meskes(at)postgresql(dot)org> |
---|---|
To: | PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [INTERFACES] ECPG: FETCH ALL|n FROM cursor - Memory allocation? |
Date: | 2002-05-06 11:00:51 |
Message-ID: | 20020506110051.GE17805@feivel.credativ.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers 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(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!
From | Date | Subject | |
---|---|---|---|
Next Message | Joel Burton | 2002-05-06 11:07:00 | Re: HEADS UP: Win32/OS2/BeOS native ports |
Previous Message | Michael Meskes | 2002-05-06 10:59:58 | Re: [INTERFACES] ECPG: FETCH ALL|n FROM cursor - Memory allocation? |
From | Date | Subject | |
---|---|---|---|
Next Message | Christof Petig | 2002-05-06 12:47:31 | Re: [INTERFACES] ECPG: FETCH ALL|n FROM cursor - Memory allocation? |
Previous Message | Michael Meskes | 2002-05-06 10:59:58 | Re: [INTERFACES] ECPG: FETCH ALL|n FROM cursor - Memory allocation? |