| 603 | } |
| 604 | |
| 605 | bool 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 | |
| 612 | void MemoryLeakDetector::checkForCorruption(MemoryLeakDetectorNode* node, const char* file, size_t line, TestMemoryAllocator* allocator, bool allocateNodesSeperately) |
| 613 | { |
nothing calls this directly
no test coverage detected