Fixed memory leak in test harness.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 06 Jul 2015 21:02:20 +0200
changeset 9798 ab7d231295cd
parent 9797 c142db5785ad
child 9799 d1e20d38e5f5
Fixed memory leak in test harness. Found by Cppcheck.
src/test/SDL_test_harness.c
--- a/src/test/SDL_test_harness.c	Sun Jul 05 15:45:48 2015 -0700
+++ b/src/test/SDL_test_harness.c	Mon Jul 06 21:02:20 2015 +0200
@@ -484,6 +484,7 @@
         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;
         }
     }