GUAC-1164: Free private key used for SSH login.

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

Branch: refs/heads/master
Commit: e57c9ddd86c1f470752d71f9d9e65658a17c95d5
Parents: 0a4bfc9
Author: Michael Jumper <[email protected]>
Authored: Thu Mar 17 17:15:14 2016 -0700
Committer: Michael Jumper <[email protected]>
Committed: Thu Mar 17 17:30:32 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/e57c9ddd/src/common-ssh/guac_ssh_key.c
----------------------------------------------------------------------
diff --git a/src/common-ssh/guac_ssh_key.c b/src/common-ssh/guac_ssh_key.c
index adbe041..6c374e3 100644
--- a/src/common-ssh/guac_ssh_key.c
+++ b/src/common-ssh/guac_ssh_key.c
@@ -150,6 +150,7 @@ void guac_common_ssh_key_free(guac_common_ssh_key* key) {
     else if (key->type == SSH_KEY_DSA)
         DSA_free(key->dsa);
 
+    free(key->private_key);
     free(key->public_key);
     free(key);
 }

Reply via email to