浏览代码

No need to check memory allocator initialization while free'ing a pointer

Ioannis Koutras 13 年之前
父节点
当前提交
bc38f43428
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      src/custom_free.c

+ 0 - 7
src/custom_free.c

@@ -244,13 +244,6 @@ void free(void *ptr) {
     int heap_id;
 
     allocator = &systemallocator;
-    /* Space aware allocators have to be already initialized, no need to do
-     * that here. */
-#ifndef WITH_MEMORY_SPACE_AWARENESS
-    if(allocator->initialized != true) {
-        initialize_allocator(allocator);
-    }
-#endif /* WITH_MEMORY_SPACE_AWARENESS */
 
     /* FIXME Space aware allocators currently use one heap */
 #ifdef WITH_MEMORY_SPACE_AWARENESS