--------------------- PatchSet 1235 Date: 2005/02/23 03:10:48 Author: nlewycky Branch: prefetching Tag: (none) Log: Fix a leak that may be responsible for a hang later in operation. Members: src/PrefetchStream.cc:1.1.2.2->1.1.2.3 Index: squid3/src/PrefetchStream.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/Attic/PrefetchStream.cc,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- squid3/src/PrefetchStream.cc 26 Jan 2005 19:51:34 -0000 1.1.2.2 +++ squid3/src/PrefetchStream.cc 23 Feb 2005 03:10:48 -0000 1.1.2.3 @@ -1,6 +1,6 @@ /* - * $Id: PrefetchStream.cc,v 1.1.2.2 2005/01/26 19:51:34 nlewycky Exp $ + * $Id: PrefetchStream.cc,v 1.1.2.3 2005/02/23 03:10:48 nlewycky Exp $ * * DEBUG: section 93 HTML parsing and fetching * AUTHOR: Nick Lewycky @@ -95,8 +95,10 @@ // Refuse re-download negatively cached entries ... by refusing to // fetch any entry found in the cache. - if (storeGetPublic(url, METHOD_GET) != NULL) { + StoreEntry *entry; + if ((entry = storeGetPublic(url, METHOD_GET)) != NULL) { debugs(93, 1, "No need to prefetch " << url); + storeRelease(entry); return; }