Fixed memory leak in dir_darwin.odin.

This commit is contained in:
sir-w7
2022-12-21 07:25:13 -08:00
parent 0829ac30f7
commit 67c1b364c4

View File

@@ -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 {