pgsql: Properly close files after read file failure to prevent potentia

Started by Bruce Momjianalmost 16 years ago1 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Properly close files after read file failure to prevent potential
resource leak. Of course, any such failure aborts pg_upgrade, but might
as well be clean about it.

Per patch from Grzegorz Ja?kiewicz.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=f175884520949fbc52908d2f4b2baacde5906ebc

Modified Files
--------------
contrib/pg_upgrade/file.c | 3 +++
contrib/pg_upgrade/page.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)