From f09ca9bd86ee08ee8d7e746f2a60e281205ff5d2 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 23 Mar 2009 14:21:51 +0000 Subject: [PATCH] avoid descriptor leak in compress code. Daniel Novotny --- src/compress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compress.c b/src/compress.c index ae6b5421..be706592 100644 --- a/src/compress.c +++ b/src/compress.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: compress.c,v 1.61 2009/02/03 20:27:51 christos Exp $") +FILE_RCSID("@(#)$File: compress.c,v 1.62 2009/03/05 22:40:28 christos Exp $") #endif #include "magic.h" @@ -487,6 +487,8 @@ err: #else (void)wait(NULL); #endif + (void) close(fdin[0]); + return n; } } -- 2.40.0