summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-08-21 16:31:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-08-21 16:31:32 (GMT)
commit2e24dd1e5b43e8031dfebe3523d0b946ead1ccae (patch)
treecad6091299f3df86de38979e3dac62624249e3d8
parentc1b3484c2d5e2bce3234fba775af4a39182ccbc4 (diff)
downloadCMake-2e24dd1e5b43e8031dfebe3523d0b946ead1ccae.zip
CMake-2e24dd1e5b43e8031dfebe3523d0b946ead1ccae.tar.gz
CMake-2e24dd1e5b43e8031dfebe3523d0b946ead1ccae.tar.bz2
ENH: fix leak
-rw-r--r--Tests/Complex/Executable/complex.cxx1
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx1
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx1
3 files changed, 3 insertions, 0 deletions
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx
index 0bfebb3..8eaa661 100644
--- a/Tests/Complex/Executable/complex.cxx
+++ b/Tests/Complex/Executable/complex.cxx
@@ -395,6 +395,7 @@ int main()
cmPassed("Module loaded and ModuleFunction called correctly.");
}
}
+ cmDynamicLoader::FlushCache(); // fix memory leaks
if(sharedFunction() != 1)
{
cmFailed("Call to sharedFunction from shared library failed.");
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx
index 0bfebb3..8eaa661 100644
--- a/Tests/ComplexOneConfig/Executable/complex.cxx
+++ b/Tests/ComplexOneConfig/Executable/complex.cxx
@@ -395,6 +395,7 @@ int main()
cmPassed("Module loaded and ModuleFunction called correctly.");
}
}
+ cmDynamicLoader::FlushCache(); // fix memory leaks
if(sharedFunction() != 1)
{
cmFailed("Call to sharedFunction from shared library failed.");
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx
index 0bfebb3..8eaa661 100644
--- a/Tests/ComplexRelativePaths/Executable/complex.cxx
+++ b/Tests/ComplexRelativePaths/Executable/complex.cxx
@@ -395,6 +395,7 @@ int main()
cmPassed("Module loaded and ModuleFunction called correctly.");
}
}
+ cmDynamicLoader::FlushCache(); // fix memory leaks
if(sharedFunction() != 1)
{
cmFailed("Call to sharedFunction from shared library failed.");