瀏覽代碼

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

Ioannis Koutras 13 年之前
父節點
當前提交
43ebb38320
共有 1 個文件被更改,包括 1 次插入0 次删除
  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