pgsql: Properly close files after read file failure to prevent potentia - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: Properly close files after read file failure to prevent potentia
Date
Msg-id E1P0fnh-0000ll-3J@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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
------
REL9_0_STABLE

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

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix another small oversight in command_no_begin patch.
Next
From: Bruce Momjian
Date:
Subject: pgsql: Properly close files after read file failure to prevent potentia