pgsql: In passwordFromFile, don't leak the open file after stat failure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: In passwordFromFile, don't leak the open file after stat failure
Date: 2024-09-29 17:40:09
Message-ID: E1suxtw-001SjQ-Hz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2024-09-29 22:56:25 pgsql: Remove NULL dereference from RenameRelationInternal().
Previous Message Alexander Korotkov 2024-09-29 10:40:12 Re: pgsql: Implement pg_wal_replay_wait() stored procedure