Browse Source

BUG: Attempt to remove memory leak

Andy Cedilnik 21 years ago
parent
commit
a9028dfd07
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/ctest.cxx

+ 4 - 1
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;
 }