Diff

plugins/mod_storage_internal.lua @ 13340:92b7ccc76c3a

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.
author Kim Alvefur <zash@zash.se>
date Thu, 23 Nov 2023 17:49:57 +0100
parent 13263:e77994e88940
child 13343:9a9455de295d
line wrap: on
line diff
--- 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;