| 305 | |
| 306 | |
| 307 | void operator delete(void* ptr) |
| 308 | { |
| 309 | if (ptr) { |
| 310 | ptr = static_cast<char*>(ptr) - sizeof(alloc_node); // correct offset |
| 311 | if (Tracking) { |
| 312 | Lock l(mutex); |
| 313 | ++DeAllocs; |
| 314 | remove(ptr); |
| 315 | } |
| 316 | free(ptr); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | |
| 321 | void* operator new[](size_t sz) |
no test coverage detected