]> granicus.if.org Git - postgresql/commit
Fix file descriptor leak at end of recovery.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 21 Dec 2014 19:49:03 +0000 (21:49 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 21 Dec 2014 19:51:59 +0000 (21:51 +0200)
commit2ef6c66a2b1ed288a5e4448989d4b85082d22736
treef84874b9ced9bb02ba915c9814c03884b385b84f
parentcfb64fde7bb93fb44ebcb1f1924faec5b5705af7
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.
src/backend/access/transam/xlog.c