From 515c620cf1ec86f436b86b198217a0fedc5e0b1a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 21 Mar 2025 21:17:42 -0400 Subject: [PATCH] Close temp files --- stdlib/paths.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/paths.c b/stdlib/paths.c index 8dfef08..c774375 100644 --- a/stdlib/paths.c +++ b/stdlib/paths.c @@ -527,6 +527,7 @@ public Path_t Path$write_unique_bytes(Path_t path, Array_t bytes) ssize_t written = write(fd, bytes.data, (size_t)bytes.length); if (written != (ssize_t)bytes.length) fail("Could not write to file: %s\n%s", buf, strerror(errno)); + close(fd); return Path$from_str(buf); }