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

Function threadsafe_mem_leak_malloc

src/CppUTest/MemoryLeakWarningPlugin.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47static void* threadsafe_mem_leak_malloc(size_t size, const char* file, size_t line)
48{
49 MemLeakScopedMutex lock;
50 return MemoryLeakWarningPlugin::getGlobalDetector()->allocMemory(getCurrentMallocAllocator(), size, file, line, true);
51}
52
53static void threadsafe_mem_leak_free(void* buffer, const char* file, size_t line)
54{

Callers

nothing calls this directly

Calls 2

allocMemoryMethod · 0.80

Tested by

no test coverage detected