BUG #16321: Memory leaks in PostmasterMain

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: hghwng(at)gmail(dot)com
Subject: BUG #16321: Memory leaks in PostmasterMain
Date: 2020-03-27 03:21:40
Message-ID: 16321-c12957af6e8c231c@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16321
Logged by: Hugh Wang
Email address: hghwng(at)gmail(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fan Liu 2020-03-27 06:10:05 RE: why wal_max_size does not work?
Previous Message Fahar Abbas 2020-03-26 19:21:10 Re: BUG #16320: GSSAPI Error