]> git.ipfire.org Git - thirdparty/squid.git/blob - src/CachePeer.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / CachePeer.cc
1 /*
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #include "squid.h"
10 #include "acl/Gadgets.h"
11 #include "CachePeer.h"
12 #include "defines.h"
13 #include "NeighborTypeDomainList.h"
14 #include "pconn.h"
15 #include "PeerPoolMgr.h"
16
17 CBDATA_CLASS_INIT(CachePeer);
18
19 CachePeer::~CachePeer()
20 {
21 xfree(name);
22 xfree(host);
23
24 while (NeighborTypeDomainList *l = typelist) {
25 typelist = l->next;
26 xfree(l->domain);
27 xfree(l);
28 }
29
30 aclDestroyAccessList(&access);
31
32 #if USE_CACHE_DIGESTS
33 cbdataReferenceDone(digest);
34 xfree(digest_url);
35 #endif
36
37 delete next;
38
39 xfree(login);
40
41 delete standby.pool;
42
43 // the mgr job will notice that its owner is gone and stop
44 PeerPoolMgr::Checkpoint(standby.mgr, "peer gone");
45
46 xfree(domain);
47 }
48