summaryrefslogtreecommitdiff
path: root/Tests/Plugin
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-09-10 17:10:40 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2007-09-10 17:10:40 -0400
commit226993c9709aa85d3a312ad488953ad4d72b0bc6 (patch)
tree5069dcd29a76d00648d7a78777938f22f56e0672 /Tests/Plugin
parent41b20b59794227f2843cf032b0c300f97ccfdec0 (diff)
downloadcmake-226993c9709aa85d3a312ad488953ad4d72b0bc6.tar.gz
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 df7b2a07b3..d2c52052c1 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;
}