ParseTzFile doesn't FreeFile on error
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2022-05-30T08:37:40Z
Lists: pgsql-hackers
Attachments
- 0001-Fix-ParseTzFile-to-call-FreeFile-on-error.patch (text/x-patch)
While working on some patch, I saw the following error message when a transaction ended successfully after a failed call to parse_and_validate_value(). The cause is ParseTzFile() returns leaving an open file descriptor unfreed in some error cases. This happens only in a special case when the errors are ignored, but in principle the file descriptor should be released before exiting the function. I'm not sure it's worth fixing but the attached fixes that. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Ensure ParseTzFile() closes the input file after failing.
- c73748b68a0e 13.8 landed
- c47a558528dd 14.4 landed
- ae758e603d5c 11.17 landed
- a3faebd6a58a 12.12 landed
- 2114910cae6a 10.22 landed
- 16c80e7d0cda 15.0 landed