Commit c2387a4b authored by Brad King's avatar Brad King
Browse files

DynamicLoader: Fix CloseLibrary for failed OpenLibrary on HP-UX

Suggested-by: Gerhard Grimm's avatarGerhard Grimm <>
Change-Id: I22bf9a8e14c5c3862f6422ec2d8cc4da645a5a0d
parent 4f39791b
......@@ -48,6 +48,10 @@ DynamicLoader::LibraryHandle DynamicLoader::OpenLibrary(const kwsys_stl::string&
int DynamicLoader::CloseLibrary(DynamicLoader::LibraryHandle lib)
if (!lib)
return 0;
return !shl_unload(lib);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment