From e83d7bf208c812ed157f993256381d60eef580d3 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Sat, 24 Feb 2018 03:38:51 +0000 Subject: [PATCH] lualoader: Plug file handle not properly closed --- stand/lua/config.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/lua/config.lua b/stand/lua/config.lua index d9ecd11b2992..c4446378ce8d 100644 --- a/stand/lua/config.lua +++ b/stand/lua/config.lua @@ -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