Prechádzať zdrojové kódy

Properly mark free a block when coalescing is not activated.

Ioannis Koutras 14 rokov pred
rodič
commit
8f4e91a195
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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 */