| ... | ... | @@ -669,17 +669,16 @@ inline fn callMain(args: std.process.Args.Vector, environ: std.process.Environ.B |
| 669 | 669 | else |
| 670 | 670 | std.heap.smp_allocator; |
| 671 | 671 | |
| 672 | | defer if (use_debug_allocator) switch (debug_allocator.deinit()) { |
| 673 | | .leak => std.process.exit(1), |
| 674 | | .ok => {}, |
| 672 | defer if (use_debug_allocator) { |
| 673 | _ = debug_allocator.deinit(); // Leaks do not affect return code. |
| 675 | 674 | }; |
| 676 | 675 | |
| 677 | 676 | var arena_allocator = std.heap.ArenaAllocator.init(std.heap.page_allocator); |
| 678 | 677 | defer arena_allocator.deinit(); |
| 679 | 678 | |
| 680 | 679 | var threaded: std.Io.Threaded = .init(gpa, .{ |
| 681 | | .argv0 = .init(.{ .value = args }), |
| 682 | | .environ = .{ .process_environ = .{ .block = environ } }, |
| 680 | .argv0 = .init(.{ .vector = args }), |
| 681 | .environ = .{ .block = environ }, |
| 683 | 682 | }); |
| 684 | 683 | defer threaded.deinit(); |
| 685 | 684 | |