os2: fix wiping results with temp allocator guard

This commit is contained in:
Laytan Laats committed 2024-08-14 01:44:37 +02:00
1 parent 7474db6a34
commit bd808f9ec6
15 files changed
+25 -38

No files matched your search

+1 -2
View File
@@ -237,8 +237,7 @@ _process_list :: proc(allocator: runtime.Allocator) -> (list: []int, err: Error)
return
}
assert(!is_temp(allocator))
TEMP_ALLOCATOR_GUARD()
TEMP_ALLOCATOR_GUARD(ignore=is_temp(allocator))
buffer := make([]i32, ret, temp_allocator())
ret = darwin.proc_listallpids(raw_data(buffer), ret*size_of(i32))