GUACAMOLE-398: Fix memory leak identified by Coverity in common ssh code.
This commit is contained in:
parent
afb554a014
commit
e4dd8de4f1
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user