os2: fix bad free for posix file closure

This commit is contained in:
Laytan Laats
2024-08-12 19:10:38 +02:00
parent 61ee2efa35
commit f837e35f4b

View File

@@ -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
}