summaryrefslogtreecommitdiffstats
path: root/Tests/Plugin
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-09-10 21:10:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-09-10 21:10:40 (GMT)
commit226993c9709aa85d3a312ad488953ad4d72b0bc6 (patch)
tree5069dcd29a76d00648d7a78777938f22f56e0672 /Tests/Plugin
parent41b20b59794227f2843cf032b0c300f97ccfdec0 (diff)
downloadCMake-226993c9709aa85d3a312ad488953ad4d72b0bc6.zip
CMake-226993c9709aa85d3a312ad488953ad4d72b0bc6.tar.gz
CMake-226993c9709aa85d3a312ad488953ad4d72b0bc6.tar.bz2
ENH: fix memory leak
Diffstat (limited to 'Tests/Plugin')
-rw-r--r--Tests/Plugin/src/example_exe.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/Plugin/src/example_exe.cxx b/Tests/Plugin/src/example_exe.cxx
index df7b2a0..d2c5205 100644
--- a/Tests/Plugin/src/example_exe.cxx
+++ b/Tests/Plugin/src/example_exe.cxx
@@ -54,6 +54,7 @@ int main()
kwsys_ios::cerr << "Incorrect return value from plugin!"
<< kwsys_ios::endl;
return 1;
- }
+ }
+ kwsys::DynamicLoader::CloseLibrary(handle);
return 0;
}