| Index: net/http/http_auth_gssapi_posix.cc
|
| diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc
|
| index 4ccdf404e163cf93e06f8f9a94decdeb84374fe4..6e41bdcffcb9055e108af2dc7f43b636b23c7263 100644
|
| --- a/net/http/http_auth_gssapi_posix.cc
|
| +++ b/net/http/http_auth_gssapi_posix.cc
|
| @@ -80,9 +80,12 @@ base::NativeLibrary GSSAPISharedLibrary::LoadSharedLibrary() {
|
| const char* library_name = kLibraryNames[i];
|
| FilePath file_path(library_name);
|
| base::NativeLibrary lib = base::LoadNativeLibrary(file_path);
|
| - // Only return this library if we can bind the functions we need.
|
| - if (lib && BindMethods(lib))
|
| - return lib;
|
| + if (lib) {
|
| + // Only return this library if we can bind the functions we need.
|
| + if (BindMethods(lib))
|
| + return lib;
|
| + base::UnloadNativeLibrary(lib);
|
| + }
|
| }
|
| LOG(WARNING) << "Unable to find a compatible GSSAPI library";
|
| return NULL;
|
| @@ -511,4 +514,3 @@ int HttpAuthGSSAPI::GetNextSecurityToken(const std::wstring& spn,
|
| }
|
|
|
| } // namespace net
|
| -
|
|
|