diff options
author | 2001-01-07 19:04:47 +0000 | |
---|---|---|
committer | 2001-01-07 19:04:47 +0000 | |
commit | 35a5375b67cea187d17dcbf9f667bdf44441e7b0 (patch) | |
tree | 2a3fedcc773dccda607813d01b391414b89a3e03 | |
parent | libutil.h -> util.h (diff) | |
download | wireguard-openbsd-35a5375b67cea187d17dcbf9f667bdf44441e7b0.tar.xz wireguard-openbsd-35a5375b67cea187d17dcbf9f667bdf44441e7b0.zip |
missing free, stevesk@pobox.com
-rw-r--r-- | usr.bin/ssh/auth1.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/cli.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth1.c b/usr.bin/ssh/auth1.c index a8521baa44d..a0b072b73a1 100644 --- a/usr.bin/ssh/auth1.c +++ b/usr.bin/ssh/auth1.c @@ -10,7 +10,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth1.c,v 1.9 2000/12/27 12:34:49 markus Exp $"); +RCSID("$OpenBSD: auth1.c,v 1.10 2001/01/07 19:06:25 markus Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -414,6 +414,7 @@ do_authentication() packet_start(SSH_SMSG_SUCCESS); packet_send(); packet_write_wait(); + xfree(user); /* Perform session preparation. */ do_authenticated(pw); diff --git a/usr.bin/ssh/cli.c b/usr.bin/ssh/cli.c index ab9a7dcf2f0..05f061b0e03 100644 --- a/usr.bin/ssh/cli.c +++ b/usr.bin/ssh/cli.c @@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$OpenBSD: cli.c,v 1.2 2000/10/16 09:38:44 djm Exp $"); +RCSID("$OpenBSD: cli.c,v 1.3 2001/01/07 19:04:47 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -146,9 +146,12 @@ cli_write(char* buf, int size) for (pos = 0; pos < len; pos += ret) { ret = write(cli_output, output + pos, len - pos); - if (ret == -1) + if (ret == -1) { + xfree(output) return -1; + } } + xfree(output) return 0; } |