From 252904d727f442f78bef06f83230fd0805d9c7c9 Mon Sep 17 00:00:00 2001 From: d Date: Fri, 10 Mar 2000 06:53:51 +0000 Subject: [PATCH] plug leak --- usr.bin/compress/main.c | 5 +++-- 1 file 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; } -- 2.20.1