| ... | @@ -19,6 +19,7 @@ pub fn make( | ... | @@ -19,6 +19,7 @@ pub fn make( |
| 19 | const step = maker.stepByIndex(step_index); | 19 | const step = maker.stepByIndex(step_index); |
| 20 | const conf = &maker.scanned_config.configuration; | 20 | const conf = &maker.scanned_config.configuration; |
| 21 | const graph = maker.graph; | 21 | const graph = maker.graph; |
| | 22 | const gpa = maker.gpa; |
| 22 | const arena = graph.arena; // TODO don't leak into process arena | 23 | const arena = graph.arena; // TODO don't leak into process arena |
| 23 | const io = graph.io; | 24 | const io = graph.io; |
| 24 | const conf_step = step_index.ptr(conf); | 25 | const conf_step = step_index.ptr(conf); |
| ... | @@ -100,7 +101,8 @@ pub fn make( | ... | @@ -100,7 +101,8 @@ pub fn make( |
| 100 | }; | 101 | }; |
| 101 | defer src_dir.close(io); | 102 | defer src_dir.close(io); |
| 102 | | 103 | |
| 103 | var it = try src_dir.walk(arena); | 104 | var it = try src_dir.walk(gpa); |
| | 105 | defer it.deinit(); |
| 104 | next_entry: while (it.next(io) catch |err| switch (err) { | 106 | next_entry: while (it.next(io) catch |err| switch (err) { |
| 105 | error.Canceled, error.OutOfMemory => |e| return e, | 107 | error.Canceled, error.OutOfMemory => |e| return e, |
| 106 | else => |e| return step.fail(maker, "failed to iterate directory {f}: {t}", .{ src_dir_path, e }), | 108 | else => |e| return step.fail(maker, "failed to iterate directory {f}: {t}", .{ src_dir_path, e }), |