Explorar el Código

Properly mark free a block when coalescing is not activated.

Ioannis Koutras hace 14 años
padre
commit
8f4e91a195
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/custom_free.c

+ 2 - 1
src/custom_free.c

@@ -86,10 +86,11 @@ void custom_ahfree(allocator_t *allocator, heap_t* heap, void *ptr) {
             } else {
                 mark_free(ptr);
             }
-
         }
     } else {
+#endif /* COALESCING_FIXED || COALESCING_VARIABLE */
         mark_free(ptr);
+#if defined (COALESCING_FIXED) || defined (COALESCING_VARIABLE)
     }
 #endif /* COALESCING_FIXED || COALESCING_VARIABLE */