Parcourir la source

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

Ioannis Koutras il y a 13 ans
Parent
commit
bc38f43428
1 fichiers modifiés avec 0 ajouts et 7 suppressions
  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