From a33f8a493349af9ec54be8039b9b00a645cdea4b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 7 Aug 2024 12:13:07 -0400 Subject: Tests: Free resources --- tests/test_utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_utils.c') diff --git a/tests/test_utils.c b/tests/test_utils.c index 4b19604..9090b05 100644 --- a/tests/test_utils.c +++ b/tests/test_utils.c @@ -71,6 +71,7 @@ void test_fix_tox_conf() { char **lines = file_readlines(result, 0, 0, NULL); STASIS_ASSERT(strstr_array(lines, expected) != NULL, "{posargs} not found in result"); + GENERIC_ARRAY_FREE(lines); remove(result); guard_free(result); @@ -106,6 +107,7 @@ void test_xml_pretty_print_in_place() { STASIS_ASSERT(false, "failed to consume formatted xml file contents"); } STASIS_ASSERT(strcmp(expected, buf) == 0, "xml file was not reformatted"); + fclose(fp); } void test_path_store() { -- cgit