| 2009 | } |
| 2010 | |
| 2011 | void |
| 2012 | HTTPCacheAlt::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 | |
| 2028 | void |
| 2029 | HTTPCacheAlt::copy(HTTPCacheAlt *to_copy) |