Re: pgsql: Plug more memory leaks when reloading config file.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Plug more memory leaks when reloading config file.
Дата
Msg-id CA+TgmoY40A9s7Bn3Qr9Hn33r1=erX-x6rV-EwrQLypuL5_AkRQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Plug more memory leaks when reloading config file.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Tue, Jan 21, 2014 at 11:30 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <rhaas@postgresql.org> writes:
>> Plug more memory leaks when reloading config file.
>
> Hm, not too sure about this hunk:
>
>         ereport(LOG,
>                 (errmsg("skipping missing configuration file \"%s\"",
>                         abs_path)));
> -       return OK;
> +       OK = true;
> +       goto cleanup;
>     }
>
> That's changing the semantics, no?  That is, what if OK was previously
> false?  Seems like this coding might be masking an intended failure
> report.  I'd have expected just "goto cleanup" without changing OK.

Good catch, sorry about that.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Plug more memory leaks when reloading config file.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix inadvertent semantics change in last patch to plug memory le