I have applied the attached patch to fix pg_upgrade file descriptorleaks in error paths.
-- Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +