Software / code / prosody
Changeset
6698:95a8aeca1fc9
mod_storage_xep0227: Close file handle after reading
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 15 May 2015 15:17:27 +0200 |
| parents | 6697:3d27f5855f4b |
| children | 6699:ccdd0b615106 |
| files | plugins/mod_storage_xep0227.lua |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)