Properly close files after read file failure to prevent potential

Bruce Momjian <bruce@momjian.us>

Commit: f175884520949fbc52908d2f4b2baacde5906ebc
Author: Bruce Momjian <bruce@momjian.us>
Date: 2010-09-28T19:28:34Z
Releases: 9.1.0
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