瀏覽代碼

Properly mark free a block when coalescing is not activated.

Ioannis Koutras 14 年之前
父節點
當前提交
8f4e91a195
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 */