| 610 | } |
| 611 | |
| 612 | void MemoryLeakDetector::checkForCorruption(MemoryLeakDetectorNode* node, const char* file, size_t line, TestMemoryAllocator* allocator, bool allocateNodesSeperately) |
| 613 | { |
| 614 | if (!matchingAllocation(node->allocator_->actualAllocator(), allocator->actualAllocator())) |
| 615 | outputBuffer_.reportAllocationDeallocationMismatchFailure(node, file, line, allocator->actualAllocator(), reporter_); |
| 616 | else if (!validMemoryCorruptionInformation(node->memory_ + node->size_)) |
| 617 | outputBuffer_.reportMemoryCorruptionFailure(node, file, line, allocator->actualAllocator(), reporter_); |
| 618 | else if (allocateNodesSeperately) |
| 619 | allocator->freeMemoryLeakNode((char*) node); |
| 620 | } |
| 621 | |
| 622 | char* MemoryLeakDetector::allocMemory(TestMemoryAllocator* allocator, size_t size, bool allocatNodesSeperately) |
| 623 | { |
nothing calls this directly
no test coverage detected