Re: BUG #16666: Slight memory leak when running pg_ctl reload
От
Tom Lane
Тема
Re: BUG #16666: Slight memory leak when running pg_ctl reload
Дата
Msg-id
3197647.1602524271@sss.pgh.pa.us
Ответ на
BUG #16666: Slight memory leak when running pg_ctl reload (PG Bug reporting form)
Список
Дерево обсуждения
BUG #16666: Slight memory leak when running pg_ctl reload PG Bug reporting form <noreply@postgresql.org>
Re: BUG #16666: Slight memory leak when running pg_ctl reload Bruce Momjian <bruce@momjian.us>
Re: BUG #16666: Slight memory leak when running pg_ctl reload Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #16666: Slight memory leak when running pg_ctl reload Tom Lane <tgl@sss.pgh.pa.us>
PG Bug reporting form writes: > I found slighting memory leakage occured when running pg_ctl reload command > for the following code segment(guc.c:6726-6740). When runing 'pg_ctl > reload', for these string type PGC_POSTMASTER GUC variables like > 'unix_socket_directories', the following code segment will leak newval's > memery. Yeah, you're right. If there's a "newextra" chunk, that'll get leaked too. Even counting that, it's not very plausible that one would SIGHUP a server often enough that the bloat would become obvious, since these values typically aren't very large. But it's clearly a bug. Patch applied, thanks for the report! regards, tom lane
В списке pgsql-bugs по дате отправления
От: Petr Jelinek
Дата:
От: Tom Lane
Дата: