]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix freeing static memory
authorwessels <>
Wed, 10 Apr 1996 11:06:13 +0000 (11:06 +0000)
committerwessels <>
Wed, 10 Apr 1996 11:06:13 +0000 (11:06 +0000)
src/ipcache.cc

index 85ae2e08f1d495b324c681c9de4ccdd2085d4548..93dd45723e2cb21b9d25a4983f00ee36fb465510 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: ipcache.cc,v 1.16 1996/04/08 17:08:01 wessels Exp $ */
+/* $Id: ipcache.cc,v 1.17 1996/04/10 05:06:13 wessels Exp $ */
 
 /*
  * DEBUG: Section 14          ipcache: IP Cache
@@ -1357,7 +1357,7 @@ void ipcacheShutdownServers()
        debug(14, 1, "ipcacheShutdownServers: sending '$shutdown' to dnsserver #%d\n", i);
        debug(14, 1, "ipcacheShutdownServers: --> FD %d\n", dns->outpipe);
        file_write(dns->outpipe,
-           shutdown,
+           xstrdup(shutdown),
            strlen(shutdown),
            0,                  /* Lock */
            0,                  /* Handler */