diff options
author | Kim Alvefur <zash@zash.se> | 2015-05-15 15:17:27 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-05-15 15:17:27 +0200 |
commit | d2c03a1d000134bfacfc4690cc12eaf42dfbb541 (patch) | |
tree | c51760a9e44f5ea6cfe68b031091cd4b6a712b29 /plugins/mod_storage_xep0227.lua | |
parent | 437ae6da4629b0390c8f7b32bd5ad1d9312f3728 (diff) | |
download | prosody-d2c03a1d000134bfacfc4690cc12eaf42dfbb541.tar.gz prosody-d2c03a1d000134bfacfc4690cc12eaf42dfbb541.zip |
mod_storage_xep0227: Close file handle after reading
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r-- | plugins/mod_storage_xep0227.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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) |