1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

knownhosts: Fix a memory leak in ssh_session_get_known_hosts_entry()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-08-08 09:38:13 +02:00
parent 2839d48cb8
commit 52b57077de

View File

@@ -850,6 +850,7 @@ ssh_session_get_known_hosts_entry(ssh_session session,
session->opts.knownhosts,
server_pubkey,
pentry);
SAFE_FREE(host_port);
return found;
}