mod_storage_xep0227: Close file handle after reading
authorKim Alvefur <zash@zash.se>
Fri, 15 May 2015 13:17:27 +0000 (15:17 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 15 May 2015 13:17:27 +0000 (15:17 +0200)
plugins/mod_storage_xep0227.lua

index ebecad04962111016e7f43f6e7cdf7050426dad9..b41fc6cee70b47eeaae66f96780b2754755b5be9 100644 (file)
@@ -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)