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

Function mem_leak_operator_delete

src/CppUTest/MemoryLeakWarningPlugin.cpp:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static void mem_leak_operator_delete (void* mem) UT_NOTHROW
237{
238 MemoryLeakWarningPlugin::getGlobalDetector()->invalidateMemory((char*) mem);
239 MemoryLeakWarningPlugin::getGlobalDetector()->deallocMemory(getCurrentNewAllocator(), (char*) mem);
240}
241
242static void mem_leak_operator_delete_array (void* mem) UT_NOTHROW
243{

Callers

nothing calls this directly

Calls 3

getCurrentNewAllocatorFunction · 0.85
invalidateMemoryMethod · 0.80
deallocMemoryMethod · 0.80

Tested by

no test coverage detected