Обсуждение: pgsql: Fix file descriptor leak at end of recovery.

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

pgsql: Fix file descriptor leak at end of recovery.

От
Heikki Linnakangas
Дата:
Fix file descriptor leak at end of recovery.

XLogFileInit() returns a file descriptor, which needs to be closed. The leak
was short-lived, since the startup process exits shortly afterwards, but it
was clearly a bug, nevertheless.

Per Coverity report.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2ef6c66a2b1ed288a5e4448989d4b85082d22736

Modified Files
--------------
src/backend/access/transam/xlog.c |    9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)