Changeset

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
parents 13339:c94989c557cd
children 13341:407174990ab0
files plugins/mod_storage_internal.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;