diff --git a/src/common-ssh/ssh.c b/src/common-ssh/ssh.c index 212b21f0..5ea6feab 100644 --- a/src/common-ssh/ssh.c +++ b/src/common-ssh/ssh.c @@ -457,7 +457,7 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client, if (fd < 0) { guac_client_abort(client, GUAC_PROTOCOL_STATUS_SERVER_ERROR, "Unable to create socket: %s", strerror(errno)); - free(addresses); + freeaddrinfo(addresses); return NULL; }