Re: BUG #16273: InitDB Memory leak - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16273: InitDB Memory leak
Date
Msg-id 28473.1582440206@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16273: InitDB Memory leak  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.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



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16273: InitDB Memory leak
Next
From: Fan Liu
Date:
Subject: RE: [Bus error] huge_pages default value (try) not fall back