BUG #16273: InitDB Memory leak

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #16273: InitDB Memory leak
Дата
Msg-id 16273-9ebc6c641602e0a5@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #16273: InitDB Memory leak  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16273
Logged by:          sun qiankun
Email address:      sunqiankun@highgo.com
PostgreSQL version: 12.1
Operating system:   centos7
Description:

when i read the code  in src/bin/initdb/initdb.c.
At the function: set_info_version, we use pg_strdup to malloc  memory, but
we don't free it.

Detail info:
char       *vstr = pg_strdup(PG_VERSION);

we can fix it at the end of the function use free(vstr).


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16272: Index expression can refer to wrong attributes if index is created via CREATE TABLE LIKE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16273: InitDB Memory leak