MCPcopy Create free account
hub / github.com/cpputest/cpputest / dealloc

Method dealloc

src/CppUTest/TestMemoryAllocator.cpp:521–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

free_memoryMethod · 0.45
createCacheForSizeFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected