From f837e35f4baf425ef61e8618e249e5ae145c6cc8 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Mon, 12 Aug 2024 19:10:38 +0200 Subject: [PATCH] os2: fix bad free for posix file closure --- core/os/os2/file_posix.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os2/file_posix.odin b/core/os/os2/file_posix.odin index 3039f11c9..96b7ffe4e 100644 --- a/core/os/os2/file_posix.odin +++ b/core/os/os2/file_posix.odin @@ -115,7 +115,7 @@ _close :: proc(f: ^File_Impl) -> (err: Error) { } delete(f.cname, file_allocator()) - posix.free(f.cname) + free(f, file_allocator()) return }