[Commits] SDL: Fixed memory leak in test harness.

libsdl.org revision control commits-owner at libsdl.org
Mon Jul 6 12:04:41 PDT 2015


details:   https://hg.libsdl.org/SDL/rev/ab7d231295cd
changeset: 9798:ab7d231295cd
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Mon Jul 06 21:02:20 2015 +0200
description:
Fixed memory leak in test harness.

Found by Cppcheck.

diffstat:

 src/test/SDL_test_harness.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r c142db5785ad -r ab7d231295cd 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;
         }
     }


More information about the commits mailing list