pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix some memory leaks and improve restricted token handling on W
Date: Mon, 27 Jan 2020 02:03:11 +0000
Message-ID: <E1ivtk7-0007jQ-U6@gemulon.postgresql.org> (raw)

Fix some memory leaks and improve restricted token handling on Windows

The leaks have been detected by a Coverity run on Windows.  No backpatch
is done as the leaks are minor.

While on it, make restricted token creation more consistent in its error
handling by logging an error instead of a warning if missing
advapi32.dll, which was missing in the NT4 days.  Any modern platform
should have this DLL around.  Now, if the library is not there, an error
is still reported back to the caller, and nothing is done do there is no
behavior change done in this commit.

Author: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQApa9MG0foPkgPX87fipk=vhnF2Xfg+CfUyR08h4R7Mywg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/10a525230fb18331dbcfd6a4a7248d76f55c331c

Modified Files
--------------
src/backend/libpq/auth.c            | 14 ++++++++++++++
src/backend/postmaster/postmaster.c |  6 ++++++
src/common/restricted_token.c       | 34 ++++++++++++++++++++++------------
3 files changed, 42 insertions(+), 12 deletions(-)



Message-ID: <E1ivtk7-0007jQ-U6@gemulon.postgresql.org>
Permalink:  ../E1ivtk7-0007jQ-U6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ivtk7-0007jQ-U6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix some memory leaks and improve restricted token handling on W
  In-Reply-To: <E1ivtk7-0007jQ-U6@gemulon.postgresql.org>
  References: <E1ivtk7-0007jQ-U6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox