diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-10 21:10:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-10 21:10:40 (GMT) |
commit | 226993c9709aa85d3a312ad488953ad4d72b0bc6 (patch) | |
tree | 5069dcd29a76d00648d7a78777938f22f56e0672 /Tests/Plugin | |
parent | 41b20b59794227f2843cf032b0c300f97ccfdec0 (diff) | |
download | CMake-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.cxx | 3 |
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; } |