Skip to content

Commit

Permalink
Fixed memory leak in test harness.
Browse files Browse the repository at this point in the history
Found by Cppcheck.
  • Loading branch information
philippwiesemann committed Jul 6, 2015
1 parent 396b3b8 commit 4679195
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/SDL_test_harness.c
Expand Up @@ -484,6 +484,7 @@ int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *user
if (suiteFilter == 0 && testFilter == 0) {
SDLTest_LogError("Filter '%s' did not match any test suite/case.", filter);
SDLTest_Log("Exit code: 2");
SDL_free(failedTests);
return 2;
}
}
Expand Down

0 comments on commit 4679195

Please sign in to comment.