From 8c517de1d770a90023d94d96ec3963118f71d476 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 22 Oct 2026 15:28:14 +0530 Subject: Mark it as to-be-closed instead of explicit close. --- mkelf.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mkelf.lua b/mkelf.lua index a811a57..6a90504 100644 --- a/mkelf.lua +++ b/mkelf.lua @@ -272,12 +272,11 @@ local function main() output = arg[i + 1] ::continue:: end - local f = assert(io.open(output, "wb")) + local f = assert(io.open(output, "wb")) header.phnum = #phdrs header.phentsize = (header.class == Class.bit64) and 0x38 or 0x20 f:write(ElfHeader_pack(header)) f:write(ElfPHeader_pack(phdrs, header.data, header.class)) - f:close() end main() -- cgit v1.3