From 96476f74aff695e5b02ad6049e3b08097de6df1e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 8 Aug 2018 13:49:38 +0200 Subject: [PATCH] kownhosts: Fix a memory leak in ssh_session_has_known_hosts_entry() Signed-off-by: Andreas Schneider --- src/knownhosts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/knownhosts.c b/src/knownhosts.c index 3c42a640..8c17d5ea 100644 --- a/src/knownhosts.c +++ b/src/knownhosts.c @@ -550,6 +550,7 @@ enum ssh_known_hosts_e ssh_session_has_known_hosts_entry(ssh_session session) rc = ssh_known_hosts_read_entries(host_port, session->opts.knownhosts, &entry_list); + SAFE_FREE(host_port); if (rc != 0) { return SSH_KNOWN_HOSTS_UNKNOWN; }