Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?

Поиск
Список
Период
Сортировка
Искать
От
Michael Meskes
Тема
Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation?
Дата
в 07:04:35
Msg-id
20020506110051.GE17805@feivel.credativ.de
Ответ на
Список
Дерево обсуждения
Re: ECPG: FETCH ALL|n FROM cursor - Memory allocation? Christof Petig <christof@petig-baender.de>
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 по дате отправления
От: Michael Meskes
Дата:
От: Leslie Herps
Дата:
Сообщение: [ERROR] pgsql_perl5
FAQ