From a5aa8c3e3a7a52d4d572e29714d68f1bfe789f7b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 4 Oct 2004 09:42:08 +0000 Subject: [PATCH] * cygcheck.cc (pretty_id): Close pipe. --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/cygcheck.cc | 1 + 2 files changed, 5 insertions(+) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 6684e3a68..38fb67c3b 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2004-10-04 Bas van Gompel + + * cygcheck.cc (pretty_id): Close pipe. + 2004-09-23 Bas van Gompel * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index 924c3ce9b..f5008e983 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -791,6 +791,7 @@ pretty_id (const char *s, char *cygwin, size_t cyglen) static char empty[] = ""; buf[0] = '\0'; fgets (buf, sizeof (buf), f); + pclose (f); char *uid = strtok (buf, ")"); if (uid) uid += strlen ("uid=");