Re: BUG #16666: Slight memory leak when running pg_ctl reload

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: bchen90(at)163(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16666: Slight memory leak when running pg_ctl reload
Date: 2020-10-12 14:42:27
Message-ID: 3091770.1602513747@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Uh, you are saying pg_ctl leaks memory or the database server leaks
> memory? I don't see any memory allocation in the code you posted.

I've not looked at the code yet, but I think the OP is worried that
we need to free(newval) before these "return"s.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-10-12 15:13:38 Re: BUG #15858: could not stat file - over 4GB
Previous Message Bruce Momjian 2020-10-12 14:19:38 Re: BUG #16666: Slight memory leak when running pg_ctl reload