Re: BUG #16273: InitDB Memory leak

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sunqiankun(at)highgo(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16273: InitDB Memory leak
Date: 2020-02-23 06:43:26
Message-ID: 28473.1582440206@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> when i read the code in src/bin/initdb/initdb.c.
> At the function: set_info_version, we use pg_strdup to malloc memory, but
> we don't free it.

There are lots of minor memory leaks in initdb. We don't really care
that much, because the program executes over a fixed set of data and
then terminates.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter J. Holzer 2020-02-23 10:19:28 Re: DB running out of memory issues after upgrade
Previous Message PG Bug reporting form 2020-02-23 06:05:48 BUG #16273: InitDB Memory leak