lualoader: Plug file handle not properly closed

This commit is contained in:
Kyle Evans 2018-02-24 03:38:51 +00:00
parent 3dcb764877
commit e83d7bf208
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329898

View File

@ -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