diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-22 23:30:50 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-22 23:30:50 +0200 |
commit | 8724f97a1938a1c67e8bd89d653673e9cde79246 (patch) | |
tree | ef04f7897aff77ba001f289428f4ba18641491a7 /libssh/keyfiles.c | |
parent | 8960992267881c84914e5ca4b9f72aafa063eabd (diff) | |
download | libssh-8724f97a1938a1c67e8bd89d653673e9cde79246.tar.gz libssh-8724f97a1938a1c67e8bd89d653673e9cde79246.tar.xz libssh-8724f97a1938a1c67e8bd89d653673e9cde79246.zip |
Fixed memory leak in ssh_is_server_known()
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r-- | libssh/keyfiles.c | 2 |
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); |