From 722e9d93945eac0053839e4f2c56ac3e3d186ee8 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 17 Mar 2024 21:45:17 -0400 Subject: Ensured we close filehandles. --- src/lpm.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lpm.lua b/src/lpm.lua index e1c751a..23747a7 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -469,6 +469,7 @@ function common.copy(src, dst, hidden) dst_io:write(chunk) end dst_io:close() + src_io:close() system.chmod(dst, src_stat.mode) end end -- cgit v1.2.3