From 58988fbce5ff31a8e1c6d98d0e51e2757fe3add0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 23 Nov 2023 17:49:57 +0100 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index da562201..26dd6a0e 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -258,6 +258,7 @@ function archive:find(username, query) return function() local item = iter(); if item == nil then + list:close(); return end local key = item.key; -- cgit v1.2.3