mod_storage_internal: Close archive list after completion of iteration
authorKim Alvefur <zash@zash.se>
Thu, 23 Nov 2023 17:49:57 +0100
changeset 13344 92b7ccc76c3a
parent 13343 c94989c557cd
child 13345 407174990ab0
mod_storage_internal: Close archive list after completion of iteration This closes the two FDs that the random access list abstraction uses, otherwise they are left to the garbage collector.
plugins/mod_storage_internal.lua
--- a/plugins/mod_storage_internal.lua	Wed Nov 22 22:35:44 2023 +0100
+++ b/plugins/mod_storage_internal.lua	Thu Nov 23 17:49:57 2023 +0100
@@ -258,6 +258,7 @@
 	return function()
 		local item = iter();
 		if item == nil then
+			list:close();
 			return
 		end
 		local key = item.key;