summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-03 11:14:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-03 11:14:05 (GMT)
commita9028dfd0767916baf2b267ac4e5cae5b70ca923 (patch)
tree5df2a90f22dc19517591e79967ce4d90448b2b33
parenta1bc51d565b5769f8f007a7053952de0323e2f6f (diff)
downloadCMake-a9028dfd0767916baf2b267ac4e5cae5b70ca923.zip
CMake-a9028dfd0767916baf2b267ac4e5cae5b70ca923.tar.gz
CMake-a9028dfd0767916baf2b267ac4e5cae5b70ca923.tar.bz2
BUG: Attempt to remove memory leak
-rw-r--r--Source/ctest.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 3af2ba7..3be9293 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -178,6 +178,9 @@ int main (int argc, char *argv[])
args.push_back(argv[i]);
}
// run ctest
- return inst.Run(args);
+ int res = inst.Run(args);
+ cmListFileCache::ClearCache();
+
+ return res;
}