[cmake-commits] hoffman committed example_exe.cxx 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 10 17:10:42 EDT 2007


Update of /cvsroot/CMake/CMake/Tests/Plugin/src
In directory public:/mounts/ram/cvs-serv20775

Modified Files:
	example_exe.cxx 
Log Message:
ENH: fix memory leak


Index: example_exe.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Plugin/src/example_exe.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- example_exe.cxx	19 Apr 2007 15:32:43 -0000	1.3
+++ example_exe.cxx	10 Sep 2007 21:10:40 -0000	1.4
@@ -54,6 +54,7 @@
     kwsys_ios::cerr << "Incorrect return value from plugin!"
                     << kwsys_ios::endl;
     return 1;
-    }
+    } 
+  kwsys::DynamicLoader::CloseLibrary(handle);
   return 0;
 }



More information about the Cmake-commits mailing list