]> git.ipfire.org Git - thirdparty/squid.git/blame - src/CachePeer.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / CachePeer.cc
CommitLineData
719815a0 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
719815a0
AJ
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"
719815a0
AJ
12#include "defines.h"
13#include "NeighborTypeDomainList.h"
14#include "pconn.h"
15#include "PeerPoolMgr.h"
16
17CBDATA_CLASS_INIT(CachePeer);
18
719815a0
AJ
19CachePeer::~CachePeer()
20{
21 xfree(name);
22 xfree(host);
23
719815a0
AJ
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);
719815a0 47}
7dfc5092 48