diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-22 23:30:50 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-06-23 09:13:26 +0200 |
commit | ae3bb42da5837d3396e4edeceaa456cb1da8a195 (patch) | |
tree | d81c6bd0d966ffed57ecbadea87cae110d9907f8 /libssh | |
parent | 918a912cd56dcac81feea2c52348cdc24b1468cf (diff) | |
download | libssh-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.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); |