From bf393eb7d75f11276f4b1320f500348aeb831523 Mon Sep 17 00:00:00 2001 From: Mitch Watrous Date: Mon, 1 Apr 2013 11:34:43 -0700 Subject: [PATCH] Bug 1563 - reduce valgrind test scope --- src/core/model/test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/model/test.cc b/src/core/model/test.cc index 54f9161d7..a35d25b3c 100644 --- a/src/core/model/test.cc +++ b/src/core/model/test.cc @@ -704,7 +704,10 @@ TestRunnerImpl::FilterTests (std::string testName, // duration that should be run, then don't run it. if (testCase->m_duration > maximumTestDuration) { - // Remove this test case. + // Free this test case's memory. + delete *j; + + // Remove this test case from the test suite. test->m_children.erase (j); } else