| 1710 | } |
| 1711 | |
| 1712 | CNetMgr::~CNetMgr() |
| 1713 | { |
| 1714 | if (_ip_hash != NULL) |
| 1715 | { |
| 1716 | HashKey* hash_item = _ip_hash->HashGetFirst(); |
| 1717 | while (hash_item) |
| 1718 | { |
| 1719 | delete hash_item; |
| 1720 | hash_item = _ip_hash->HashGetFirst(); |
| 1721 | } |
| 1722 | |
| 1723 | delete _ip_hash; |
| 1724 | _ip_hash = NULL; |
| 1725 | } |
| 1726 | |
| 1727 | if (_session_hash != NULL) |
| 1728 | { |
| 1729 | HashKey* hash_item = _session_hash->HashGetFirst(); |
| 1730 | while (hash_item) |
| 1731 | { |
| 1732 | delete hash_item; |
| 1733 | hash_item = _session_hash->HashGetFirst(); |
| 1734 | } |
| 1735 | |
| 1736 | delete _session_hash; |
| 1737 | _session_hash = NULL; |
| 1738 | } |
| 1739 | |
| 1740 | sk_buffer_mng_destroy(&_tcp_pool); |
| 1741 | sk_buffer_mng_destroy(&_udp_pool); |
| 1742 | } |
| 1743 | |
| 1744 | void CNetMgr::RecycleObjs(uint64_t now) |
| 1745 | { |
nothing calls this directly
no test coverage detected