/*
- * $Id: Server.cc,v 1.5 2006/05/19 17:19:09 wessels Exp $
+ * $Id: Server.cc,v 1.6 2006/09/20 22:26:24 hno Exp $
*
* DEBUG:
* AUTHOR: Duane Wessels
fwd = NULL; // refcounted
#if ICAP_CLIENT
-
- if (icap) {
+ if (icap)
delete icap;
- cbdataReferenceDone(icap);
- }
-
#endif
}
debug(11,5)("ServerStateData::doIcap() called\n");
assert(NULL == icap);
icap = new ICAPClientRespmodPrecache(service);
- (void) cbdataReference(icap);
return 0;
}
/*
- * $Id: client_side_request.cc,v 1.72 2006/09/02 06:49:48 robertc Exp $
+ * $Id: client_side_request.cc,v 1.73 2006/09/20 22:26:24 hno Exp $
*
* DEBUG: section 85 Client-side Request Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
debugs(85,3, HERE << this << " ClientHttpRequest destructed");
}
-ClientRequestContext::ClientRequestContext(ClientHttpRequest *anHttp) : http(anHttp), acl_checklist (NULL), redirect_state (REDIRECT_NONE)
+ClientRequestContext::ClientRequestContext(ClientHttpRequest *anHttp) : http(cbdataReference(anHttp)), acl_checklist (NULL), redirect_state (REDIRECT_NONE)
{
- (void) cbdataReference(http);
http_access_done = false;
redirect_done = false;
no_cache_done = false;
freeResources();
#if ICAP_CLIENT
- if (icap) {
+ if (icap)
delete icap;
- cbdataReferenceDone(icap);
- }
#endif
if (calloutContext)
delete calloutContext;
debugs(85, 3, HERE << this << " ClientHttpRequest::doIcap() called");
assert(NULL == icap);
icap = new ICAPClientReqmodPrecache(service);
- (void) cbdataReference(icap);
icap->startReqMod(this, request);
if (request->body_reader == NULL) {