Fix corruption issue

This commit is contained in:
lax1dude 2024-11-09 18:46:59 -08:00
parent 07728cb10a
commit 73148353eb

View File

@ -231,7 +231,7 @@ public final class LaxMalloc {
allocateMemoryFromChunk(addrIterator, chunkSize, sizeBytes);
// +4 bytes to skip size int
Address ret = chunkPtr.add(4);
Address ret = addrIterator.add(4);
// clear if requested
if (cleared) {