The following bug has been logged on the website:
Bug reference: 16273
Logged by: sun qiankun
Email address: sunqiankun(at)highgo(dot)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).