diff options
author | 2004-02-19 08:43:37 +0000 | |
---|---|---|
committer | 2004-02-19 08:43:37 +0000 | |
commit | 1c9e9522c7f9404075b7f4e5f34b9d457e5ff0fc (patch) | |
tree | eefb7c9b96a748c0d3f427c73e122995a74c96d6 | |
parent | takin out the trash (diff) | |
download | wireguard-openbsd-1c9e9522c7f9404075b7f4e5f34b9d457e5ff0fc.tar.xz wireguard-openbsd-1c9e9522c7f9404075b7f4e5f34b9d457e5ff0fc.zip |
fix mem leak.
hackers@ ok
-rw-r--r-- | usr.bin/tftp/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index e1d128cf069..f29402bc757 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.21 2003/12/22 22:17:38 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.22 2004/02/19 08:43:37 mpech Exp $ */ /* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: main.c,v 1.21 2003/12/22 22:17:38 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: main.c,v 1.22 2004/02/19 08:43:37 mpech Exp $"; #endif /* not lint */ /* Many bug fixes are from Jim Guyton <guyton@rand-unix> */ @@ -370,6 +370,7 @@ put(int argc, char *argv[]) fd = open(argv[n], O_RDONLY); if (fd < 0) { warn("open: %s", argv[n]); + free(cp); continue; } if (verbose) |