MCPcopy Create free account
hub / github.com/apache/trafficserver / destroy

Method destroy

src/proxy/hdrs/HTTP.cc:2011–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2009}
2010
2011void
2012HTTPCacheAlt::destroy()
2013{
2014 ink_assert(m_magic == CACHE_ALT_MAGIC_ALIVE);
2015 ink_assert(m_writeable);
2016 m_magic = CACHE_ALT_MAGIC_DEAD;
2017 m_writeable = 0;
2018 m_request_hdr.destroy();
2019 m_response_hdr.destroy();
2020 m_frag_offset_count = 0;
2021 if (m_frag_offsets && m_frag_offsets != m_integral_frag_offsets) {
2022 ats_free(m_frag_offsets);
2023 m_frag_offsets = nullptr;
2024 }
2025 httpCacheAltAllocator.free(this);
2026}
2027
2028void
2029HTTPCacheAlt::copy(HTTPCacheAlt *to_copy)

Callers 13

test_urlFunction · 0.45
test_parseFunction · 0.45
get_hashFunction · 0.45
SECTIONFunction · 0.45
test_mime.ccFile · 0.45
test_Hdrs.ccFile · 0.45
test_http_hdr_null_charFunction · 0.45
test_http_hdr_ctl_charFunction · 0.45
test_HdrHeap.ccFile · 0.45

Calls 2

ats_freeFunction · 0.85
freeMethod · 0.45

Tested by 8

test_urlFunction · 0.36
test_parseFunction · 0.36
get_hashFunction · 0.36
SECTIONFunction · 0.36
test_http_hdr_null_charFunction · 0.36
test_http_hdr_ctl_charFunction · 0.36