diff --git a/lib/std/heap.zig b/lib/std/heap.zig index e7196f82f260b650766364f9da1e6fe3e3e43a09..1bce45081dc690fab9912363d81ddc3cc6dd35dd 100644 --- a/lib/std/heap.zig +++ b/lib/std/heap.zig @@ -533,7 +533,7 @@ pub const ArenaAllocator = struct { }; } - pub fn deinit(self: *ArenaAllocator) void { + pub fn deinit(self: ArenaAllocator) void { var it = self.buffer_list.first; while (it) |node| { // this has to occur before the free because the free frees node