diff --git a/src/utils/heap.zig b/src/utils/heap.zig index 2aa17767..f5abb954 100644 --- a/src/utils/heap.zig +++ b/src/utils/heap.zig @@ -122,9 +122,8 @@ pub const StackAllocator = struct { // MARK: StackAllocator previousTrailer = self.getTrailerBefore(previousTrailer.previousAllocationTrailer); } } - } else { - trailer.wasFreed = true; } + trailer.wasFreed = true; } else { self.backingAllocator.rawFree(memory, alignment, ret_addr); }