pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: hghwng@gmail.com
Subject: BUG #16321: Memory leaks in PostmasterMain
Date: Fri, 27 Mar 2020 03:21:40 +0000
Message-ID: <16321-c12957af6e8c231c@postgresql.org> (raw)

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.



view thread (4+ messages)  latest in thread

Message-ID: <16321-c12957af6e8c231c@postgresql.org>
Permalink:  ../16321-c12957af6e8c231c@postgresql.org/
Also on:    postgresql.org/message-id/16321-c12957af6e8c231c@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, hghwng@gmail.com
  Subject: Re: BUG #16321: Memory leaks in PostmasterMain
  In-Reply-To: <16321-c12957af6e8c231c@postgresql.org>
  References: <16321-c12957af6e8c231c@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox