From ce80c37c751e2c59151ad5bcbb6137c560d72d64 Mon Sep 17 00:00:00 2001 From: Andreas T Jonsson Date: Thu, 25 Apr 2024 11:04:44 +0200 Subject: [PATCH] Fixed potential memory leak --- core/os/os_netbsd.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os_netbsd.odin b/core/os/os_netbsd.odin index bb89a4a50..37b0ab54a 100644 --- a/core/os/os_netbsd.odin +++ b/core/os/os_netbsd.odin @@ -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 }