mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 00:24:05 +00:00
os2: fix bad free for posix file closure
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user