fix missing cleanup in test_hl_linked_list_from_array

Tue, 28 Dec 2021 17:49:52 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 28 Dec 2021 17:49:52 +0100
changeset 491
6d538177f746
parent 490
e66551b47466
child 492
188942a7308b

fix missing cleanup in test_hl_linked_list_from_array

test/test_list.c file | annotate | diff | comparison | revisions
--- a/test/test_list.c	Tue Dec 28 17:41:51 2021 +0100
+++ b/test/test_list.c	Tue Dec 28 17:49:52 2021 +0100
@@ -581,6 +581,10 @@
     CxList list = cxLinkedListFromArray(cxTestingAllocator, (CxListComparator) cmp_int, sizeof(int), 5, data);
 
     CU_ASSERT_TRUE(0 == cxListCompare(list, expected))
+
+    cxLinkedListDestroy(list);
+    cxLinkedListDestroy(expected);
+    CU_ASSERT_TRUE(cxTestingAllocatorVerify())
 }
 
 void test_hl_linked_list_add(void) {

mercurial