Re: Questions about warnings - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Questions about warnings
Date
Msg-id 873b5zckuk.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Questions about warnings  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Questions about warnings
Next
From: Magnus Hagander
Date:
Subject: Re: Questions about warnings