mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-08 11:44:21 -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);
|
previousTrailer = self.getTrailerBefore(previousTrailer.previousAllocationTrailer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
trailer.wasFreed = true;
|
|
||||||
}
|
}
|
||||||
|
trailer.wasFreed = true;
|
||||||
} else {
|
} else {
|
||||||
self.backingAllocator.rawFree(memory, alignment, ret_addr);
|
self.backingAllocator.rawFree(memory, alignment, ret_addr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user