From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: In passwordFromFile, don't leak the open file after stat failure
Date: Sun, 29 Sep 2024 17:40:09 +0000
Message-ID: <E1suxtw-001SjQ-Hz@gemulon.postgresql.org> (raw)
In passwordFromFile, don't leak the open file after stat failures.
Oversight in e882bcae0. Per Coverity.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e9339782a631eeef01281bc7e1633dd6b970106e
Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 5 +++++
1 file changed, 5 insertions(+)
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: In passwordFromFile, don't leak the open file after stat failure
In-Reply-To: <E1suxtw-001SjQ-Hz@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