diff --git a/core/os/dir_darwin.odin b/core/os/dir_darwin.odin index 1f54ef1ab..7d0f2936d 100644 --- a/core/os/dir_darwin.odin +++ b/core/os/dir_darwin.odin @@ -14,11 +14,12 @@ read_dir :: proc(fd: Handle, n: int, allocator := context.allocator) -> (fi: []F dirpath: string dirpath, err = absolute_path_from_handle(fd) - if err != ERROR_NONE { return } + defer delete(dirpath) + n := n size := n if n <= 0 {