소스 검색

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

Ioannis Koutras 14 년 전
부모
커밋
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