# HG changeset patch # User Kim Alvefur # Date 1431695847 -7200 # Node ID 95a8aeca1fc9735391e606eb4f4ffea3aeffa546 # Parent 3d27f5855f4bd317e18c643a2e743389dec25685 mod_storage_xep0227: Close file handle after reading diff -r 3d27f5855f4b -r 95a8aeca1fc9 plugins/mod_storage_xep0227.lua --- a/plugins/mod_storage_xep0227.lua Fri May 15 15:16:03 2015 +0200 +++ b/plugins/mod_storage_xep0227.lua Fri May 15 15:17:27 2015 +0200 @@ -17,6 +17,7 @@ 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)