Fixed potential memory leak

This commit is contained in:
Andreas T Jonsson
2024-04-25 11:04:44 +02:00
parent 642391eb49
commit ce80c37c75

View File

@@ -391,7 +391,7 @@ seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Errno) {
}
file_size :: proc(fd: Handle) -> (i64, Errno) {
s, err := fstat(fd)
s, err := _fstat(fd)
if err != ERROR_NONE {
return -1, err
}