Repository: incubator-guacamole-server
Updated Branches:
  refs/heads/master afb554a01 -> 1d0e63b25


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


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/e4dd8de4
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/e4dd8de4
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/e4dd8de4

Branch: refs/heads/master
Commit: e4dd8de4f1383bf6235822acb933175172942693
Parents: afb554a
Author: Nick Couchman <nick.couch...@yahoo.com>
Authored: Wed Sep 27 13:02:41 2017 -0400
Committer: Nick Couchman <nick.couch...@yahoo.com>
Committed: Wed Sep 27 13:02:41 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/e4dd8de4/src/common-ssh/ssh.c
----------------------------------------------------------------------
diff --git a/src/common-ssh/ssh.c b/src/common-ssh/ssh.c
index d3e1e42..212b21f 100644
--- a/src/common-ssh/ssh.c
+++ b/src/common-ssh/ssh.c
@@ -457,6 +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);
             return NULL;
         }
 

Reply via email to