summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-03-10 06:53:52 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-03-10 06:53:52 +0000
commit22dd533f383443bb637a35599d97beca6d00079f (patch)
tree5093a4c31293f344bdcd0a0cd2934528c7e47329 /usr.bin
parent8c1eec293cd0cb0d9468ff6d0f1f7bfa3256fd92 (diff)
plug leak
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/compress/main.c5
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;
}