GUACAMOLE-398: Fix memory leak identified by Coverity in common ssh code.

This commit is contained in:
Nick Couchman 2017-09-27 13:02:41 -04:00
parent afb554a014
commit e4dd8de4f1

View File

@ -457,6 +457,7 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client,
if (fd < 0) { if (fd < 0) {
guac_client_abort(client, GUAC_PROTOCOL_STATUS_SERVER_ERROR, guac_client_abort(client, GUAC_PROTOCOL_STATUS_SERVER_ERROR,
"Unable to create socket: %s", strerror(errno)); "Unable to create socket: %s", strerror(errno));
free(addresses);
return NULL; return NULL;
} }