diff --git a/test/main.c b/test/main.c index ad039de..a97079a 100644 --- a/test/main.c +++ b/test/main.c @@ -60,15 +60,13 @@ int main(int ac, char **av) test(0, (const void*) (uintptr_t) (raw_get_chunk(allocs_tree[TINY], ptr1) == NULL), "alloc first", ""); test(0, (const void*) (uintptr_t) (raw_get_chunk(allocs_tree[TINY], ptr2) == NULL), "alloc second", ""); test(0, (const void*) (uintptr_t) (raw_get_chunk(allocs_tree[TINY], ptr3) == NULL), "alloc third", ""); - show_alloc_mem(); ft_free(ptr1); test(0, (const void*) (uintptr_t) (raw_get_chunk(allocs_tree[TINY], ptr2) == NULL), "free disorder1", ""); ft_free(ptr3); test(0, (const void*) (uintptr_t) (raw_get_chunk(allocs_tree[TINY], ptr2) == NULL), "free disorder2", ""); - show_alloc_mem(); ft_free(ptr2); - show_alloc_mem(); test(NULL, allocs_tree[TINY], "free disorder3", ""); + show_alloc_mem(); return 0;