summaryrefslogtreecommitdiff
path: root/Tests/Plugin
diff options
context:
space:
mode:
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;
}