PQnotifies and freeing memory.

Поиск
Список
Период
Сортировка
От Joshua Moore-Oliva
Тема PQnotifies and freeing memory.
Дата
Msg-id 200310110510.53507.josh@chatgris.com
обсуждение исходный текст
Ответы Re: PQnotifies and freeing memory.
Список pgsql-general
After reading the below struct and free statement, I am rather confused..

Do I need to free the struct, the char *, or both?

Thanks.

PGnotify* PQnotifies(PGconn *conn);

 typedef struct pgNotify {
     char *relname;              /* name of relation containing data */
     int  be_pid;                /* process id of backend */
 } PGnotify;

 After processing a PGnotify object returned by PQnotifies, be sure to free it
with free() to avoid a memory leak.


В списке pgsql-general по дате отправления:

Предыдущее
От: "Claudio Lapidus"
Дата:
Сообщение: "slicing" records
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: "slicing" records