From: robertc <> Date: Tue, 11 Mar 2003 15:24:42 +0000 (+0000) Subject: Summary: Fixup cbdataFree uses. X-Git-Tag: SQUID_3_0_PRE1~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=101a3d6fdd3bab448559dfcc35702d90dbcbb312;p=thirdparty%2Fsquid.git Summary: Fixup cbdataFree uses. Keywords: cbdataFree should not be used with typecasts. --- diff --git a/src/ESI.cc b/src/ESI.cc index da9160beb9..0dd49229b4 100644 --- a/src/ESI.cc +++ b/src/ESI.cc @@ -1,6 +1,6 @@ /* - * $Id: ESI.cc,v 1.1 2003/03/10 04:56:30 robertc Exp $ + * $Id: ESI.cc,v 1.2 2003/03/11 08:24:42 robertc Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -2422,7 +2422,7 @@ esiRemove::operator new(size_t byteCount) void esiRemove::operator delete (void *address) { - cbdataFree ((esiRemove *)address); + cbdataFree (address); } void @@ -2772,7 +2772,7 @@ esiAttempt::operator new(size_t byteCount) void esiAttempt::operator delete (void *address) { - cbdataFree ((esiAttempt *)address); + cbdataFree (address); } #endif @@ -2797,7 +2797,7 @@ esiExcept::operator new(size_t byteCount) void esiExcept::operator delete (void *address) { - cbdataFree ((esiExcept *)address); + cbdataFree (address); } #endif @@ -2822,7 +2822,7 @@ esiVar::operator new(size_t byteCount) void esiVar::operator delete (void *address) { - cbdataFree ((esiVar *)address); + cbdataFree (address); } #endif @@ -2876,7 +2876,7 @@ esiVarState::operator new(size_t byteCount) void esiVarState::operator delete (void *address) { - cbdataFree ((esiVarState *)address); + cbdataFree (address); } void @@ -3947,7 +3947,7 @@ esiOtherwise::operator new(size_t byteCount) void esiOtherwise::operator delete (void *address) { - cbdataFree ((esiOtherwise *)address); + cbdataFree (address); } #endif diff --git a/src/ESISegment.cc b/src/ESISegment.cc index 5b53e56189..8d75c3e289 100644 --- a/src/ESISegment.cc +++ b/src/ESISegment.cc @@ -1,6 +1,6 @@ /* - * $Id: ESISegment.cc,v 1.1 2003/03/10 04:56:36 robertc Exp $ + * $Id: ESISegment.cc,v 1.2 2003/03/11 08:24:42 robertc Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -163,7 +163,7 @@ ESISegment::operator new(size_t byteCount) void ESISegment::operator delete (void *address) { - cbdataFree ((ESISegment *)address); + cbdataFree (address); } void diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index dfe579d52c..beb732e609 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.45 2003/03/10 04:56:37 robertc Exp $ + * $Id: client_side_reply.cc,v 1.46 2003/03/11 08:24:42 robertc Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -250,7 +250,7 @@ clientReplyContext::operator new (size_t byteCount) void clientReplyContext::operator delete (void *address) { - cbdataFree ((clientReplyContext *)address); + cbdataFree (address); } diff --git a/src/store_client.cc b/src/store_client.cc index 81c4237730..180c7763ee 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -1,6 +1,6 @@ /* - * $Id: store_client.cc,v 1.125 2003/03/04 01:40:30 robertc Exp $ + * $Id: store_client.cc,v 1.126 2003/03/11 08:24:43 robertc Exp $ * * DEBUG: section 90 Storage Manager Client-Side Interface * AUTHOR: Duane Wessels @@ -76,7 +76,7 @@ store_client::operator new (size_t byteCount) void store_client::operator delete (void *address) { - cbdataFree ((store_client *)address); + cbdataFree (address); } bool