]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Sat, 7 Oct 2000 22:10:13 +0000 (22:10 +0000)
committerwessels <>
Sat, 7 Oct 2000 22:10:13 +0000 (22:10 +0000)
 - Passing i->handlerData rather than handlerData to cbdataUnlock()
   is wrong and causes a memory leak because the cbdata never gets
   unlocked.

src/ipcache.cc

index ad2c94b4cfbc052e66454d7ca6c41beef518748a..16b08cea7beab2da4d052b0720f9c50e88123612 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.224 2000/10/04 19:34:14 wessels Exp $
+ * $Id: ipcache.cc,v 1.225 2000/10/07 16:10:13 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -206,7 +206,7 @@ ipcacheCallback(ipcache_entry * i)
        dns_error_message = i->error_message;
        handler(i->flags.negcached ? NULL : &i->addrs, handlerData);
     }
-    cbdataUnlock(i->handlerData);
+    cbdataUnlock(handlerData);
     ipcacheUnlockEntry(i);
 }