Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix: memory allocated for test suite references is freed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Jun 8, 2011
1 parent 8564619 commit a40b66b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test-automation/runner.c
Expand Up @@ -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;
}

0 comments on commit a40b66b

Please sign in to comment.