From: wessels <> Date: Tue, 19 Jan 1999 06:15:42 +0000 (+0000) Subject: FD leak for 504 replies because we leaked "http->entry" when creating X-Git-Tag: SQUID_3_0_PRE1~2391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d173c77d00013d873a491b076963a4a6eb4864ed;p=thirdparty%2Fsquid.git FD leak for 504 replies because we leaked "http->entry" when creating a new reply. --- diff --git a/src/client_side.cc b/src/client_side.cc index 92a0d6eb8e..869d058b0a 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.430 1999/01/12 00:20:42 wessels Exp $ + * $Id: client_side.cc,v 1.431 1999/01/18 23:15:42 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1643,6 +1643,10 @@ clientProcessOnlyIfCachedMiss(clientHttpRequest * http) err = errorCon(ERR_ONLY_IF_CACHED_MISS, HTTP_GATEWAY_TIMEOUT); err->request = requestLink(r); err->src_addr = http->conn->peer.sin_addr; + if (http->entry) { + storeUnregister(http->entry, http); + storeUnlockObject(http->entry); + } http->entry = clientCreateStoreEntry(http, r->method, null_request_flags); errorAppendEntry(http->entry, err); }