Fix double free detection of the StackAllocator

This commit is contained in:
IntegratedQuantum 2025-07-25 17:28:59 +02:00
parent 432e476d0f
commit 08c78ff48d

View File

@ -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);
}