aboutsummaryrefslogtreecommitdiff
path: root/serialize_lib/serialize.lua
diff options
context:
space:
mode:
Diffstat (limited to 'serialize_lib/serialize.lua')
-rw-r--r--serialize_lib/serialize.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/serialize_lib/serialize.lua b/serialize_lib/serialize.lua
index a525e9e..12a26c4 100644
--- a/serialize_lib/serialize.lua
+++ b/serialize_lib/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