GUAC-1389: Ensure dlopen()'d handle to plugin is released on error.

This commit is contained in:
Michael Jumper 2016-03-02 10:54:58 -08:00
parent 873a7a3211
commit 15f7fedfea

View File

@ -687,6 +687,7 @@ int guac_client_load_plugin(guac_client* client, const char* protocol) {
if (dlerror() != NULL) {
guac_error = GUAC_STATUS_INTERNAL_ERROR;
guac_error_message = dlerror();
dlclose(client_plugin_handle);
return -1;
}