Fix: memory allocated for test suite references is freed

This commit is contained in:
Markus Kauppila 2011-06-08 18:38:38 +03:00
parent 4f5d867d8d
commit ab42fe5afa

View file

@ -479,5 +479,15 @@ main(int argc, char *argv[])
printf("%d tests passed\n", passCount);
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;
}