Browse Source

Fixed potential memory leak

Andreas T Jonsson 1 year ago
parent
commit
ce80c37c75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os_netbsd.odin

+ 1 - 1
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
 	}