pgsql: Fix file descriptor leak at end of recovery.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix file descriptor leak at end of recovery.
Date: 2014-12-21 19:58:38
Message-ID: E1Y2meE-0003Kp-EE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-12-21 20:31:52 pgsql: Docs: clarify treatment of variadic functions with zero variadic
Previous Message Noah Misch 2014-12-20 06:19:58 Re: pgsql: Allow pushdown of WHERE quals into subqueries with window functi