MCPcopy Create free account
hub / github.com/ElementsProject/elements / deallocate

Method deallocate

src/support/allocators/secure.h:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void deallocate(T* p, std::size_t n)
50 {
51 if (p != nullptr) {
52 memory_cleanse(p, sizeof(T) * n);
53 }
54 LockedPoolManager::Instance().free(p);
55 }
56};
57
58// This is exactly like std::string, but with a custom allocator.

Callers

nothing calls this directly

Calls 2

memory_cleanseFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected