Fixed memory leak in test harness.
authorPhilipp Wiesemann
Mon, 06 Jul 2015 21:02:20 +0200
changeset 9798ab7d231295cd
parent 9797 c142db5785ad
child 9799 d1e20d38e5f5
Fixed memory leak in test harness.

Found by Cppcheck.
src/test/SDL_test_harness.c
     1.1 --- a/src/test/SDL_test_harness.c	Sun Jul 05 15:45:48 2015 -0700
     1.2 +++ b/src/test/SDL_test_harness.c	Mon Jul 06 21:02:20 2015 +0200
     1.3 @@ -484,6 +484,7 @@
     1.4          if (suiteFilter == 0 && testFilter == 0) {
     1.5              SDLTest_LogError("Filter '%s' did not match any test suite/case.", filter);
     1.6              SDLTest_Log("Exit code: 2");
     1.7 +            SDL_free(failedTests);
     1.8              return 2;
     1.9          }
    1.10      }