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

Method storeLeakInformation

src/CppUTest/MemoryLeakDetector.cpp:565–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void MemoryLeakDetector::storeLeakInformation(MemoryLeakDetectorNode * node, char *new_memory, size_t size, TestMemoryAllocator *allocator, const char *file, size_t line)
566{
567 node->init(new_memory, allocationSequenceNumber_++, size, allocator, current_period_, current_allocation_stage_, file, line);
568 addMemoryCorruptionInformation(node->memory_ + node->size_);
569 memoryTable_.addNewNode(node);
570}
571
572char* MemoryLeakDetector::reallocateMemoryAndLeakInformation(TestMemoryAllocator* allocator, char* memory, size_t size, const char* file, size_t line, bool allocatNodesSeperately)
573{

Callers

nothing calls this directly

Calls 2

addNewNodeMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected