Collected from the PG bugs email list.
|Reported by||Hugh Wang|
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.
|2020-03-27 03:21:40+00||PG Bug reporting form||BUG #16321: Memory leaks in PostmasterMain|
|2020-03-27 14:52:38+00||Tom Lane||Re: BUG #16321: Memory leaks in PostmasterMain|
|2020-03-30 02:10:10+00||Hugh Wang||Re: BUG #16321: Memory leaks in PostmasterMain|
|2020-03-30 11:13:58+00||Francisco Olarte||Re: BUG #16321: Memory leaks in PostmasterMain|