aboutsummaryrefslogtreecommitdiff
path: root/serialize.lua
diff options
context:
space:
mode:
Diffstat (limited to 'serialize.lua')
-rw-r--r--serialize.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/serialize.lua b/serialize.lua
index a525e9e..12a26c4 100644
--- a/serialize.lua
+++ b/serialize.lua
@@ -190,6 +190,7 @@ local function write_to_fd(root_table, file, config)
file:write("LUA_SER v=1\n")
write_table(root_table, file, config)
file:write("E\nEND_SER\n")
+ file:close()
end
-- Reads the file contents from the passed file descriptor and returns the table on success