mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 10:22:08 +00:00
Fix os2/process defer error.
This commit is contained in:
@@ -407,11 +407,9 @@ process_exec :: proc(
|
||||
{
|
||||
stdout_b: [dynamic]byte
|
||||
stdout_b.allocator = allocator
|
||||
defer stdout = stdout_b[:]
|
||||
|
||||
stderr_b: [dynamic]byte
|
||||
stderr_b.allocator = allocator
|
||||
defer stderr = stderr_b[:]
|
||||
|
||||
buf: [1024]u8 = ---
|
||||
|
||||
@@ -450,6 +448,9 @@ process_exec :: proc(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stdout = stdout_b[:]
|
||||
stderr = stderr_b[:]
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user