| 519 | } |
| 520 | |
| 521 | void MemoryAccountant::dealloc(size_t size) |
| 522 | { |
| 523 | MemoryAccountantAllocationNode* node = findOrCreateNodeOfSize(size); |
| 524 | node->deallocations_++; |
| 525 | if (node->currentAllocations_) |
| 526 | node->currentAllocations_--; |
| 527 | } |
| 528 | |
| 529 | size_t MemoryAccountant::totalAllocationsOfSize(size_t size) const |
| 530 | { |
no outgoing calls
no test coverage detected