PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16321
PG Version12.2
OSLinux
Opened2020-03-27 03:21:40+00
Reported byHugh Wang
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16321
Logged by:          Hugh Wang
Email address:      (redacted)
PostgreSQL version: 12.2
Operating system:   Linux
Description:        

The argument parsing duplicates strings, but never frees them.

For example, when you pass "-D $DATA_DIR" to postmaster, postmaster
duplicates the string here:
https://github.com/postgres/postgres/blob/master/src/backend/postmaster/postmaster.c#L698

The duplicated string is passed to `SelectConfigFiles`, which does
everything except freeing the string.

Messages

DateAuthorSubject
2020-03-27 03:21:40+00PG Bug reporting formBUG #16321: Memory leaks in PostmasterMain
2020-03-27 14:52:38+00Tom LaneRe: BUG #16321: Memory leaks in PostmasterMain
2020-03-30 02:10:10+00Hugh WangRe: BUG #16321: Memory leaks in PostmasterMain
2020-03-30 11:13:58+00Francisco OlarteRe: BUG #16321: Memory leaks in PostmasterMain