소스 검색

os2: fix bad free for posix file closure

Laytan Laats 1 년 전
부모
커밋
f837e35f4b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 }