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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to