diff options
| author | 2000-03-10 06:53:51 +0000 | |
|---|---|---|
| committer | 2000-03-10 06:53:51 +0000 | |
| commit | 252904d727f442f78bef06f83230fd0805d9c7c9 (patch) | |
| tree | 7ccab36b07d6944f2c3fc5ac30e03403cbf32b46 | |
| parent | Sync. (diff) | |
| download | wireguard-openbsd-252904d727f442f78bef06f83230fd0805d9c7c9.tar.xz wireguard-openbsd-252904d727f442f78bef06f83230fd0805d9c7c9.zip | |
plug leak
| -rw-r--r-- | usr.bin/compress/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index 857f2fc80a4..4deacf6eb28 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.12 1999/09/26 17:35:49 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.13 2000/03/10 06:53:51 d Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.12 1999/09/26 17:35:49 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.13 2000/03/10 06:53:51 d Exp $"; #endif #endif /* not lint */ @@ -432,6 +432,7 @@ decompress(in, out, method, bits) if (!pipin && (method = check_method(ifd, out)) == NULL) { if (verbose >= 0) warnx("%s: unrecognized file format", in); + close (ifd); return -1; } |
