| 251 | } |
| 252 | |
| 253 | int cleanReceiver(Receiver *rs) { |
| 254 | if (!rs) { |
| 255 | return 0; |
| 256 | } |
| 257 | m_mapReceiver.erase(sockaddrToint64(rs->fromaddr)); |
| 258 | for (std::map<int64_t, std::pair<uint32_t, uint8_t *> *>::iterator it = rs->sessionMap.begin(); it != rs->sessionMap.end(); it++) { |
| 259 | std::pair<uint32_t, uint8_t *> *p = (*it).second; |
| 260 | delete[] p->second; |
| 261 | delete p; |
| 262 | } |
| 263 | delete rs; |
| 264 | return 1; |
| 265 | } |
| 266 | |
| 267 | // #lizard forgives |
| 268 | int processReceive() { |
nothing calls this directly
no test coverage detected