You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2017/09/27 17:30:05 UTC

[2/3] incubator-guacamole-server git commit: GUACAMOLE-398: Use freeaddrinfo() instead of free() on the linked list.

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


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/9200bc78
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/9200bc78
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/9200bc78

Branch: refs/heads/master
Commit: 9200bc789fbd9da1a35402a71b2f783a25b8064a
Parents: e4dd8de
Author: Nick Couchman <ni...@yahoo.com>
Authored: Wed Sep 27 13:24:58 2017 -0400
Committer: Nick Couchman <ni...@yahoo.com>
Committed: Wed Sep 27 13:24:58 2017 -0400

----------------------------------------------------------------------
 src/common-ssh/ssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/9200bc78/src/common-ssh/ssh.c
----------------------------------------------------------------------
diff --git a/src/common-ssh/ssh.c b/src/common-ssh/ssh.c
index 212b21f..5ea6fea 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;
         }