Maker.Step.Run: fix wrong allocator used

This commit is contained in:
Andrew Kelley
2026-05-23 13:11:50 -07:00
parent 3e75a3e36b
commit 05fbeb4ea7
+2 -1
View File
@@ -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,