]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fd leak (Balint Nagy Endre)
authorwessels <>
Wed, 5 Feb 1997 00:50:46 +0000 (00:50 +0000)
committerwessels <>
Wed, 5 Feb 1997 00:50:46 +0000 (00:50 +0000)
src/send-announce.cc

index d708c5468e23d17bb98f80a8e70347f74683a445..5eb5fd4ac5177e949f9cb1494457822590f4a6b2 100644 (file)
@@ -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());
        }