commit 05fbeb4ea7acef3e9cfcce650343b1ef73e12e29 (tree)
parent 3e75a3e36b75cc8b85b4e7b1e825a11b0f1e8de1
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 23 May 2026 13:11:50 -0700
Maker.Step.Run: fix wrong allocator used
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/compiler/Maker/Step/Run.zig b/lib/compiler/Maker/Step/Run.zig
@@ -2106,6 +2106,7 @@ fn spawnChildAndCollect(
const graph = maker.graph;
const io = graph.io;
const arena = graph.arena; // TODO don't leak into process arena
+ const gpa = maker.gpa;
const conf = &maker.scanned_config.configuration;
const conf_step = run_index.ptr(conf);
const conf_run = conf_step.extended.get(conf.extra).run;
@@ -2122,7 +2123,7 @@ fn spawnChildAndCollect(
// If an error occurs, it's caused by this command:
assert(step.result_failed_command == null);
- step.result_failed_command = try std.zig.allocPrintCmd(arena, argv, .{
+ step.result_failed_command = try std.zig.allocPrintCmd(gpa, argv, .{
.cwd = child_cwd,
.child_env = environ_map,
.parent_env = &graph.environ_map,