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

Function threadsafe_mem_leak_free

src/CppUTest/MemoryLeakWarningPlugin.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static void threadsafe_mem_leak_free(void* buffer, const char* file, size_t line)
54{
55 MemLeakScopedMutex lock;
56 MemoryLeakWarningPlugin::getGlobalDetector()->invalidateMemory((char*) buffer);
57 MemoryLeakWarningPlugin::getGlobalDetector()->deallocMemory(getCurrentMallocAllocator(), (char*) buffer, file, line, true);
58}
59
60static void* threadsafe_mem_leak_realloc(void* memory, size_t size, const char* file, size_t line)
61{

Callers

nothing calls this directly

Calls 3

invalidateMemoryMethod · 0.80
deallocMemoryMethod · 0.80

Tested by

no test coverage detected