PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16273
PG Version12.1
OScentos7
Opened2020-02-23 06:05:48+00
Reported bysun qiankun
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16273
Logged by:          sun qiankun
Email address:      (redacted)
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).

Messages

DateAuthorSubject
2020-02-23 06:05:48+00PG Bug reporting formBUG #16273: InitDB Memory leak
2020-02-23 06:43:26+00Tom LaneRe: BUG #16273: InitDB Memory leak