os2: fix bad free for posix file closure
This commit is contained in:
1 parent
61ee2efa35
commit
f837e35f4b
1 file changed
+1
-1
@@ -115,7 +115,7 @@ _close :: proc(f: ^File_Impl) -> (err: Error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete(f.cname, file_allocator())
|
delete(f.cname, file_allocator())
|
||||||
posix.free(f.cname)
|
free(f, file_allocator())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user