Re: BUG #16160: Minor memory leak in case of starting postgres server with SSL encryption

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Stephen Frost <sfrost@snowman.net>
Cc: Jelte Fennema <postgres@jeltef.nl>, Michael Paquier <michael@paquier.xyz>, duspensky@ya.ru, pgsql-bugs@lists.postgresql.org
Date: 2021-03-20T00:07:32Z
Lists: pgsql-bugs
Hi,

On 2021-03-16 14:44:55 -0400, Stephen Frost wrote:
> OOMs errors should be gracefully handled and PG should continue to
> function.  Was that not the case..?

Depends on what you mean with graceful. Unless you restart the database
you'll eventually not be able to do anything anymore, since even the
smallest memory allocation will fail?

Greetings,

Andres Freund



Commits

  1. Fix memory leak when rejecting bogus DH parameters.

  2. Fix memory leak when initializing DH parameters in backend

  3. Avoid corner-case memory leak in SSL parameter processing.