From: wessels <> Date: Wed, 5 Feb 1997 00:50:46 +0000 (+0000) Subject: fd leak (Balint Nagy Endre) X-Git-Tag: SQUID_3_0_PRE1~5143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea1f96b6a789399db13baf3b94985596431beb91;p=thirdparty%2Fsquid.git fd leak (Balint Nagy Endre) --- diff --git a/src/send-announce.cc b/src/send-announce.cc index d708c5468e..5eb5fd4ac5 100644 --- a/src/send-announce.cc +++ b/src/send-announce.cc @@ -1,6 +1,6 @@ /* - * $Id: send-announce.cc,v 1.27 1996/12/13 20:35:27 wessels Exp $ + * $Id: send-announce.cc,v 1.28 1997/02/04 17:50:46 wessels Exp $ * * DEBUG: section 27 Cache Announcer * AUTHOR: Duane Wessels @@ -76,6 +76,7 @@ send_announce(void *unused) if (fd > -1 && (n = read(fd, sndbuf + l, BUFSIZ - l - 1)) > 0) { l += n; sndbuf[l] = '\0'; + file_close(fd); } else { debug(50, 1, "send_announce: %s: %s\n", file, xstrerror()); }