From 2e24dd1e5b43e8031dfebe3523d0b946ead1ccae Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 21 Aug 2007 12:31:32 -0400 Subject: ENH: fix leak --- Tests/Complex/Executable/complex.cxx | 1 + Tests/ComplexOneConfig/Executable/complex.cxx | 1 + Tests/ComplexRelativePaths/Executable/complex.cxx | 1 + 3 files changed, 3 insertions(+) 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."); -- cgit v0.12