Re: Questions about warnings

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Questions about warnings
Дата
Msg-id 873b5zckuk.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Questions about warnings  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
"Peter Eisentraut" <peter_e@gmx.net> writes:

> The code in question is:
>
>         const char **headers;
>
> [...]
>
>         free(headers);

Perhaps it ought not be declared "const char **headers" if you're planning on
freeing it? I mean, it's not like you can pass an actual pointer to constant
memory to this function and expect it to work, and who says free doesn't
modify the data the pointer points to anyways, plenty do.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Questions about warnings
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Questions about warnings