aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-06 08:38:14 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-06 08:38:14 +0200
commit0940b0f29b4fef86e56dffdd13d978f9692b78fc (patch)
tree4fc43dae3d47cb972357c9506fb0491190916b39
parent03b05c8a5ee609d17e118d57d62713c72df62732 (diff)
downloadlibssh-0940b0f29b4fef86e56dffdd13d978f9692b78fc.tar.gz
libssh-0940b0f29b4fef86e56dffdd13d978f9692b78fc.tar.xz
libssh-0940b0f29b4fef86e56dffdd13d978f9692b78fc.zip
knownhosts: Do not double free memory
CID 1393236 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/knownhosts.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/knownhosts.c b/src/knownhosts.c
index ea89a008..648cd777 100644
--- a/src/knownhosts.c
+++ b/src/knownhosts.c
@@ -358,7 +358,6 @@ int ssh_known_hosts_parse_line(const char *hostname,
p = strtok(known_host, " ");
if (p == NULL ) {
- free(known_host);
rc = SSH_ERROR;
goto out;
}