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

Method invalidateMemory

src/CppUTest/MemoryLeakDetector.cpp:582–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582void MemoryLeakDetector::invalidateMemory(char* memory)
583{
584#ifndef CPPUTEST_DISABLE_HEAP_POISON
585 MemoryLeakDetectorNode* node = memoryTable_.retrieveNode(memory);
586 if (node)
587 PlatformSpecificMemset(memory, 0xCD, node->size_);
588#endif
589}
590
591void MemoryLeakDetector::addMemoryCorruptionInformation(char* memory)
592{

Callers 7

threadsafe_mem_leak_freeFunction · 0.80
mem_leak_freeFunction · 0.80
mem_leak_operator_deleteFunction · 0.80
TESTFunction · 0.80

Calls 2

PlatformSpecificMemsetFunction · 0.85
retrieveNodeMethod · 0.80

Tested by 1

TESTFunction · 0.64