fix missing free() in test_array_insert_sorted

Sun, 06 Oct 2024 12:40:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 06 Oct 2024 12:40:44 +0200
changeset 912
9533fc293aea
parent 911
db829e54539e
child 913
72db8e42b95e

fix missing free() in test_array_insert_sorted

tests/test_list.c file | annotate | diff | comparison | revisions
--- a/tests/test_list.c	Sun Oct 06 12:33:57 2024 +0200
+++ b/tests/test_list.c	Sun Oct 06 12:40:44 2024 +0200
@@ -144,6 +144,7 @@
 
         CX_TEST_ASSERT(0 == memcmp(array, expected, 18 * sizeof(int)));
     }
+    free(array);
 }
 
 CX_TEST(test_array_binary_search) {

mercurial