From: wessels <> Date: Sat, 7 Oct 2000 22:10:13 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1819 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189c68871bd31e58f9e40018338c0f3fb54049d8;p=thirdparty%2Fsquid.git DW: - Passing i->handlerData rather than handlerData to cbdataUnlock() is wrong and causes a memory leak because the cbdata never gets unlocked. --- diff --git a/src/ipcache.cc b/src/ipcache.cc index ad2c94b4cf..16b08cea7b 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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); }