diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_dlinklists.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_dlinklists.c b/tests/test_dlinklists.c index 197dd757a..cba367f4c 100644 --- a/tests/test_dlinklists.c +++ b/tests/test_dlinklists.c @@ -106,10 +106,10 @@ static void destroy_test_container(struct test_container *x) struct test1 *t1; AST_DLLIST_TRAVERSE_BACKWARDS_SAFE_BEGIN(&x->entries, t1, list) { AST_DLLIST_REMOVE_CURRENT(list); - free(t1); + ast_free(t1); } AST_DLLIST_TRAVERSE_BACKWARDS_SAFE_END; - free(x); + ast_free(x); } /* Macros to test: @@ -337,7 +337,7 @@ static void dll_tests(void) if (e == b) { AST_DLLIST_REMOVE_CURRENT(list); /* C A */ - free(b); + ast_free(b); print_list(tc, "C <=> A"); } if (e == a) { |