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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: bchen90@163.com, pgsql-bugs@lists.postgresql.org
Date: 2020-10-12T14:42:27Z
Lists: pgsql-bugs
Bruce Momjian <bruce@momjian.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



Commits

  1. Fix memory leak when guc.c decides a setting can't be applied now.