소스 검색

ENH: fix leak

Bill Hoffman 18 년 전
부모
커밋
2e24dd1e5b
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Tests/Complex/Executable/complex.cxx
  2. 1 0
      Tests/ComplexOneConfig/Executable/complex.cxx
  3. 1 0
      Tests/ComplexRelativePaths/Executable/complex.cxx

+ 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.");