Explorar o código

Be sure to set initialized flag to false before performing the first allocation.

Ioannis Koutras %!s(int64=13) %!d(string=hai) anos
pai
achega
43ebb38320
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/initialize_allocator.c

+ 1 - 0
src/initialize_allocator.c

@@ -83,6 +83,7 @@ void initialize_allocator(allocator_t *allocator) {
     allocator->border_ptr = starting_address;
     allocator->remaining_size = size;
 #endif /* WITH_MEMORY_SPACE_AWARENESS */
+    allocator->initialized = false;
 
 #ifdef WITH_FIXED_LISTS