From 09475a58627185035bc27fa64af04ca968b293cd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 15 May 2015 15:17:27 +0200 Subject: mod_storage_xep0227: Close file handle after reading --- plugins/mod_storage_xep0227.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua index ebecad04..b41fc6ce 100644 --- a/plugins/mod_storage_xep0227.lua +++ b/plugins/mod_storage_xep0227.lua @@ -17,6 +17,7 @@ local function getXml(user, host) local f = io_open(path); if not f then return; end local s = f:read("*a"); + f:close(); return parse_xml_real(s); end local function setXml(user, host, xml) -- cgit v1.2.3