summaryrefslogtreecommitdiffstats
path: root/libssh/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/session.c')
-rw-r--r--libssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/session.c b/libssh/session.c
index 894506f..64c7fba 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -125,8 +125,8 @@ void ssh_cleanup(SSH_SESSION *session) {
SAFE_FREE(session->client_kex.methods);
SAFE_FREE(session->server_kex.methods);
- private_key_free(session->dsa_key);
- private_key_free(session->rsa_key);
+ privatekey_free(session->dsa_key);
+ privatekey_free(session->rsa_key);
ssh_message_free(session->ssh_message);
ssh_options_free(session->options);