|
@@ -15,10 +15,10 @@ int main(void) {
|
|
|
initialize_allocator(&systemallocator, block_from_malloc, ALLOCATOR_SIZE);
|
|
|
|
|
|
p1 = custom_ahmalloc(&systemallocator, &systemallocator.heaps[0], (size_t) 1024);
|
|
|
- custom_ahfree(&systemallocator, &systemallocator.heaps[0], p1);
|
|
|
p2 = custom_ahmalloc(&systemallocator, &systemallocator.heaps[0], (size_t) 512);
|
|
|
- p3 = custom_ahmalloc(&systemallocator, &systemallocator.heaps[0], (size_t) 394);
|
|
|
+ custom_ahfree(&systemallocator, &systemallocator.heaps[0], p1);
|
|
|
custom_ahfree(&systemallocator, &systemallocator.heaps[0], p2);
|
|
|
+ p3 = custom_ahmalloc(&systemallocator, &systemallocator.heaps[0], (size_t) 948);
|
|
|
custom_ahfree(&systemallocator, &systemallocator.heaps[0], p3);
|
|
|
|
|
|
free(block_from_malloc);
|