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

Function mem_leak_free

src/CppUTest/MemoryLeakWarningPlugin.cpp:72–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static void mem_leak_free(void* buffer, const char* file, size_t line)
73{
74 MemoryLeakWarningPlugin::getGlobalDetector()->invalidateMemory((char*) buffer);
75 MemoryLeakWarningPlugin::getGlobalDetector()->deallocMemory(getCurrentMallocAllocator(), (char*) buffer, file, line, true);
76}
77
78static void* mem_leak_realloc(void* memory, size_t size, const char* file, size_t line)
79{

Callers

nothing calls this directly

Calls 3

invalidateMemoryMethod · 0.80
deallocMemoryMethod · 0.80

Tested by

no test coverage detected