mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-27 01:40:03 +00:00
fix memory leak
This commit is contained in:
@@ -112,7 +112,8 @@ _remove_all :: proc(path: string) -> Error {
|
||||
loop: for {
|
||||
res := unix.sys_getdents64(int(dfd), &buf[0], n)
|
||||
switch res {
|
||||
case -22: //-EINVAL
|
||||
case -EINVAL:
|
||||
delete(buf)
|
||||
n *= 2
|
||||
buf = make([]u8, n)
|
||||
continue loop
|
||||
|
||||
Reference in New Issue
Block a user