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).
PG Bug reporting form <noreply@postgresql.org> writes:
> 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.
There are lots of minor memory leaks in initdb. We don't really care
that much, because the program executes over a fixed set of data and
then terminates.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера