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

Method matchingAllocation

src/CppUTest/MemoryLeakDetector.cpp:605–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605bool MemoryLeakDetector::matchingAllocation(TestMemoryAllocator *alloc_allocator, TestMemoryAllocator *free_allocator)
606{
607 if (alloc_allocator == free_allocator) return true;
608 if (!doAllocationTypeChecking_) return true;
609 return free_allocator->isOfEqualType(alloc_allocator);
610}
611
612void MemoryLeakDetector::checkForCorruption(MemoryLeakDetectorNode* node, const char* file, size_t line, TestMemoryAllocator* allocator, bool allocateNodesSeperately)
613{

Callers

nothing calls this directly

Calls 1

isOfEqualTypeMethod · 0.80

Tested by

no test coverage detected