Fix: memory allocated for test suite references is freed
This commit is contained in:
parent
4f5d867d8d
commit
ab42fe5afa
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue