Properly close files after read file failure to prevent potential

Bruce Momjian <bruce@momjian.us>

Commit: c767c3bd3690aa06a7965d7f9f9d80e5c15174cd
Author: Bruce Momjian <bruce@momjian.us>
Date: 2010-09-28T19:25:13Z
Releases: 9.0.1
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.

Files

PathChange+/−
contrib/pg_upgrade/file.c modified +3 −0
contrib/pg_upgrade/page.c modified +3 −0