In passwordFromFile, don't leak the open file after stat failures.

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

Commit: e9339782a631eeef01281bc7e1633dd6b970106e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-09-29T17:40:03Z
Releases: 18.0
In passwordFromFile, don't leak the open file after stat failures.

Oversight in e882bcae0.  Per Coverity.

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +5 −0