]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 18 Sep 2010 12:59:51 +0000 (06:59 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 18 Sep 2010 12:59:51 +0000 (06:59 -0600)
Fixed a NetDB leak.

src/icmp/net_db.cc

index dcaebb612f87fa8ddad9c4623fdf4389d6e0306f..009ab3195478730a55c43bd0122b15fbe30096e7 100644 (file)
@@ -251,6 +251,7 @@ netdbLookupAddr(const IpAddress &addr)
     char *key = new char[MAX_IPSTRLEN];
     networkFromInaddr(addr).NtoA(key,MAX_IPSTRLEN);
     n = (netdbEntry *) hash_lookup(addr_table, key);
+    delete[] key;
     return n;
 }