浏览代码

ENH: fix leak

Bill Hoffman 18 年之前
父节点
当前提交
2e24dd1e5b

+ 1 - 0
Tests/Complex/Executable/complex.cxx

@@ -395,6 +395,7 @@ int main()
         cmPassed("Module loaded and ModuleFunction called correctly.");
         cmPassed("Module loaded and ModuleFunction called correctly.");
       }
       }
     }
     }
+  cmDynamicLoader::FlushCache(); // fix memory leaks 
   if(sharedFunction() != 1)
   if(sharedFunction() != 1)
     {
     {
     cmFailed("Call to sharedFunction from shared library failed.");
     cmFailed("Call to sharedFunction from shared library failed.");

+ 1 - 0
Tests/ComplexOneConfig/Executable/complex.cxx

@@ -395,6 +395,7 @@ int main()
         cmPassed("Module loaded and ModuleFunction called correctly.");
         cmPassed("Module loaded and ModuleFunction called correctly.");
       }
       }
     }
     }
+  cmDynamicLoader::FlushCache(); // fix memory leaks 
   if(sharedFunction() != 1)
   if(sharedFunction() != 1)
     {
     {
     cmFailed("Call to sharedFunction from shared library failed.");
     cmFailed("Call to sharedFunction from shared library failed.");

+ 1 - 0
Tests/ComplexRelativePaths/Executable/complex.cxx

@@ -395,6 +395,7 @@ int main()
         cmPassed("Module loaded and ModuleFunction called correctly.");
         cmPassed("Module loaded and ModuleFunction called correctly.");
       }
       }
     }
     }
+  cmDynamicLoader::FlushCache(); // fix memory leaks 
   if(sharedFunction() != 1)
   if(sharedFunction() != 1)
     {
     {
     cmFailed("Call to sharedFunction from shared library failed.");
     cmFailed("Call to sharedFunction from shared library failed.");