GUACAMOLE-398: Use freeaddrinfo() instead of free() on the linked list.

This commit is contained in:
Nick Couchman 2017-09-27 13:24:58 -04:00
parent e4dd8de4f1
commit 9200bc789f

View File

@ -457,7 +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); freeaddrinfo(addresses);
return NULL; return NULL;
} }