Обсуждение: pgsql: Properly close files after read file failure to prevent potentia

Поиск
Список
Период
Сортировка

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

От
Bruce Momjian
Дата:
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(-)