aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-17 21:45:17 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-03-17 21:45:17 -0400
commit722e9d93945eac0053839e4f2c56ac3e3d186ee8 (patch)
treec172052737055e8bacd0cdd28f46b126c367c45c /src
parent4b010fa276dad577094faaca41f4e2690eef8154 (diff)
downloadlite-xl-plugin-manager-722e9d93945eac0053839e4f2c56ac3e3d186ee8.tar.gz
lite-xl-plugin-manager-722e9d93945eac0053839e4f2c56ac3e3d186ee8.zip
Ensured we close filehandles.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua1
1 files changed, 1 insertions, 0 deletions
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