Browse Source

os2: fix bad free for posix file closure

Laytan Laats 1 year ago
parent
commit
f837e35f4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os2/file_posix.odin

+ 1 - 1
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
 }