projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e6d799
)
mod_storage_xep0227: Close file handle after reading
author
Kim Alvefur
<zash@zash.se>
Fri, 15 May 2015 13:17:27 +0000
(15:17 +0200)
committer
Kim Alvefur
<zash@zash.se>
Fri, 15 May 2015 13:17:27 +0000
(15:17 +0200)
plugins/mod_storage_xep0227.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_storage_xep0227.lua
b/plugins/mod_storage_xep0227.lua
index ebecad04962111016e7f43f6e7cdf7050426dad9..b41fc6cee70b47eeaae66f96780b2754755b5be9 100644
(file)
--- 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)