mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:05:06 -05:00
test: free memory in unit tests on exit
This commit is contained in:
@@ -80,6 +80,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
test_unit();
|
test_unit();
|
||||||
|
|
||||||
|
UTI_ResetGetRandomFunctions();
|
||||||
LOG_Finalise();
|
LOG_Finalise();
|
||||||
|
|
||||||
printf("PASS\n");
|
printf("PASS\n");
|
||||||
|
|||||||
@@ -755,4 +755,6 @@ test_unit(void)
|
|||||||
TEST_CHECK(words[1] == buf + 3);
|
TEST_CHECK(words[1] == buf + 3);
|
||||||
TEST_CHECK(strcmp(words[0], "a") == 0);
|
TEST_CHECK(strcmp(words[0], "a") == 0);
|
||||||
TEST_CHECK(strcmp(words[1], "b") == 0);
|
TEST_CHECK(strcmp(words[1], "b") == 0);
|
||||||
|
|
||||||
|
HSH_Finalise();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user