diff options
author | 2002-06-27 10:35:47 +0000 | |
---|---|---|
committer | 2002-06-27 10:35:47 +0000 | |
commit | 44e05e871f77bff059897763b0cfeeb89037c7d5 (patch) | |
tree | 605e3942766d2b6496117cd29541641104414634 | |
parent | %u and uid/gid (diff) | |
download | wireguard-openbsd-44e05e871f77bff059897763b0cfeeb89037c7d5.tar.xz wireguard-openbsd-44e05e871f77bff059897763b0cfeeb89037c7d5.zip |
use xfree()
-rw-r--r-- | usr.bin/ssh/auth2-none.c | 4 | ||||
-rw-r--r-- | usr.bin/ssh/monitor.c | 4 | ||||
-rw-r--r-- | usr.bin/ssh/sftp-client.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ssh/auth2-none.c b/usr.bin/ssh/auth2-none.c index 0afbc4fe8cc..d54d5173fa5 100644 --- a/usr.bin/ssh/auth2-none.c +++ b/usr.bin/ssh/auth2-none.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2-none.c,v 1.3 2002/06/19 00:27:55 deraadt Exp $"); +RCSID("$OpenBSD: auth2-none.c,v 1.4 2002/06/27 10:35:47 deraadt Exp $"); #include "auth.h" #include "xmalloc.h" @@ -61,7 +61,7 @@ auth2_read_banner(void) close(fd); if (n != len) { - free(banner); + xfree(banner); return (NULL); } banner[n] = '\0'; diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index 1bda16cb04a..7f5cfc786fb 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor.c,v 1.20 2002/06/27 09:08:00 deraadt Exp $"); +RCSID("$OpenBSD: monitor.c,v 1.21 2002/06/27 10:35:47 deraadt Exp $"); #include <openssl/dh.h> @@ -540,7 +540,7 @@ int mm_answer_auth2_read_banner(int socket, Buffer *m) mm_request_send(socket, MONITOR_ANS_AUTH2_READ_BANNER, m); if (banner != NULL) - free(banner); + xfree(banner); return (0); } diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c index 1a8cf150320..9741e022dce 100644 --- a/usr.bin/ssh/sftp-client.c +++ b/usr.bin/ssh/sftp-client.c @@ -28,7 +28,7 @@ /* XXX: copy between two remote sites */ #include "includes.h" -RCSID("$OpenBSD: sftp-client.c,v 1.33 2002/06/23 09:30:14 deraadt Exp $"); +RCSID("$OpenBSD: sftp-client.c,v 1.34 2002/06/27 10:35:47 deraadt Exp $"); #include <sys/queue.h> @@ -1091,7 +1091,7 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path, debug3("In write loop, ack for %u %u bytes at %llu", ack->id, ack->len, (unsigned long long)ack->offset); ++ackid; - free(ack); + xfree(ack); } offset += len; } |