Date: Sat, 24 Feb 2018 03:38:51 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329898 - head/stand/lua Message-ID: <201802240338.w1O3cpe6067695@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Sat Feb 24 03:38:51 2018 New Revision: 329898 URL: https://svnweb.freebsd.org/changeset/base/329898 Log: lualoader: Plug file handle not properly closed Modified: head/stand/lua/config.lua Modified: head/stand/lua/config.lua ============================================================================== --- head/stand/lua/config.lua Sat Feb 24 03:35:35 2018 (r329897) +++ head/stand/lua/config.lua Sat Feb 24 03:38:51 2018 (r329898) @@ -309,6 +309,8 @@ function config.parse(name, silent, check_and_halt) end local text, _ = io.read(f) + -- We might have read in the whole file, this won't be needed any more. + io.close(f) if text == nil then if not silent then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802240338.w1O3cpe6067695>