test: free memory in unit tests on exit

This commit is contained in:
Miroslav Lichvar 2023-04-12 17:24:28 +02:00
parent 6ea1082a72
commit a8496658a0
2 changed files with 3 additions and 0 deletions

View file

@ -80,6 +80,7 @@ main(int argc, char **argv)
test_unit();
UTI_ResetGetRandomFunctions();
LOG_Finalise();
printf("PASS\n");

View file

@ -755,4 +755,6 @@ test_unit(void)
TEST_CHECK(words[1] == buf + 3);
TEST_CHECK(strcmp(words[0], "a") == 0);
TEST_CHECK(strcmp(words[1], "b") == 0);
HSH_Finalise();
}