aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-06-22 23:30:50 +0200
committerAndreas Schneider <mail@cynapses.org>2009-06-23 09:13:26 +0200
commitae3bb42da5837d3396e4edeceaa456cb1da8a195 (patch)
treed81c6bd0d966ffed57ecbadea87cae110d9907f8 /libssh
parent918a912cd56dcac81feea2c52348cdc24b1468cf (diff)
downloadlibssh-ae3bb42da5837d3396e4edeceaa456cb1da8a195.tar.gz
libssh-ae3bb42da5837d3396e4edeceaa456cb1da8a195.tar.xz
libssh-ae3bb42da5837d3396e4edeceaa456cb1da8a195.zip
Fixed memory leak in ssh_is_server_known()
Diffstat (limited to 'libssh')
-rw-r--r--libssh/keyfiles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index 147719c5..19184271 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);