From 8724f97a1938a1c67e8bd89d653673e9cde79246 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 22 Jun 2009 23:30:50 +0200 Subject: Fixed memory leak in ssh_is_server_known() --- libssh/keyfiles.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libssh/keyfiles.c') diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 147719c..1918427 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -1418,6 +1418,8 @@ int ssh_is_server_known(SSH_SESSION *session) { /* We override the status with the wrong key state */ ret = SSH_SERVER_KNOWN_CHANGED; } + } else { + tokens_free(tokens); } } while (1); -- cgit