mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
Fix double free detection of the StackAllocator
This commit is contained in:
parent
432e476d0f
commit
08c78ff48d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user