BUG #16321: Memory leaks in PostmasterMain - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16321: Memory leaks in PostmasterMain
Date
Msg-id 16321-c12957af6e8c231c@postgresql.org
Whole thread Raw
Responses Re: BUG #16321: Memory leaks in PostmasterMain
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16321
Logged by:          Hugh Wang
Email address:      hghwng@gmail.com
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.


pgsql-bugs by date:

Previous
From: Fahar Abbas
Date:
Subject: Re: BUG #16320: GSSAPI Error
Next
From: Fan Liu
Date:
Subject: RE: why wal_max_size does not work?