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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Plug more memory leaks when reloading config file.
Дата
Msg-id 28770.1390321809@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Plug more memory leaks when reloading config file.  (Robert Haas <rhaas@postgresql.org>)
Ответы Re: pgsql: Plug more memory leaks when reloading config file.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers
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.

            regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Avoid a possible relcache leak in get_object_address_attribute.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Plug more memory leaks when reloading config file.