mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
os2: Resolve temp allocator collisions
This commit is contained in:
@@ -39,9 +39,9 @@ build_env :: proc() -> (err: Error) {
|
||||
g_env_buf = make([]byte, size_of_envs, file_allocator()) or_return
|
||||
defer if err != nil { delete(g_env_buf, file_allocator()) }
|
||||
|
||||
TEMP_ALLOCATOR_GUARD()
|
||||
temp_allocator := get_temp_allocator(TEMP_ALLOCATOR_GUARD({}))
|
||||
|
||||
envs := make([]cstring, num_envs, temp_allocator()) or_return
|
||||
envs := make([]cstring, num_envs, temp_allocator) or_return
|
||||
|
||||
_err = wasi.environ_get(raw_data(envs), raw_data(g_env_buf))
|
||||
if _err != nil {
|
||||
|
||||
Reference in New Issue
Block a user