lualoader: Plug file handle not properly closed
This commit is contained in:
parent
3dcb764877
commit
e83d7bf208
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329898
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user