svn commit: r329898 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Sat Feb 24 03:38:52 UTC 2018
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
More information about the svn-src-head
mailing list