Commit ab42fe5a authored by Markus Kauppila's avatar Markus Kauppila

Fix: memory allocated for test suite references is freed

parent 4f5d867d
...@@ -479,5 +479,15 @@ main(int argc, char *argv[]) ...@@ -479,5 +479,15 @@ main(int argc, char *argv[])
printf("%d tests passed\n", passCount); printf("%d tests passed\n", passCount);
printf("%d tests failed\n", failureCount); printf("%d tests failed\n", failureCount);
// Deallocate the memory used by test suites
TestSuiteReference *ref = suites;
while(ref) {
SDL_free(ref->name);
TestSuiteReference *temp = ref->next;
SDL_free(ref);
ref = temp;
}
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment