| ... | ... | @@ -42,6 +42,7 @@ pub fn Main(comptime T: type) type { |
| 42 | 42 | std.debug.print("\n", .{}); |
| 43 | 43 | |
| 44 | 44 | const arena = &std.heap.ArenaAllocator.init(alloc); |
| 45 | defer arena.deinit(); |
| 45 | 46 | while (true) { |
| 46 | 47 | const line = r.readUntilDelimiterAlloc(alloc, '\n', max_size) catch |e| if (e == error.EndOfStream) break else return e; |
| 47 | 48 | defer alloc.free(line); |
| ... | ... | @@ -54,7 +55,6 @@ pub fn Main(comptime T: type) type { |
| 54 | 55 | } |
| 55 | 56 | |
| 56 | 57 | if (!(try T.exec(&arena.allocator, line, w))) { |
| 57 | | arena.deinit(); |
| 58 | 58 | break; |
| 59 | 59 | } |
| 60 | 60 | |