commit d1a446203222bb5bbd1d46139b93a13367c1e8bb (tree)
parent f79ae3214c41183c90ca4d7acb0ac0ded3d99f61
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 24 May 2026 22:51:14 -0700
Maker.Step.InstallArtifact: use gpa for fs walking
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/compiler/Maker/Step/InstallArtifact.zig b/lib/compiler/Maker/Step/InstallArtifact.zig
@@ -19,6 +19,7 @@ pub fn make(
const step = maker.stepByIndex(step_index);
const conf = &maker.scanned_config.configuration;
const graph = maker.graph;
+ const gpa = maker.gpa;
const arena = graph.arena; // TODO don't leak into process arena
const io = graph.io;
const conf_step = step_index.ptr(conf);
@@ -100,7 +101,8 @@ pub fn make(
};
defer src_dir.close(io);
- var it = try src_dir.walk(arena);
+ var it = try src_dir.walk(gpa);
+ defer it.deinit();
next_entry: while (it.next(io) catch |err| switch (err) {
error.Canceled, error.OutOfMemory => |e| return e,
else => |e| return step.fail(maker, "failed to iterate directory {f}: {t}", .{ src_dir_path, e }),