MCPcopy Create free account
hub / github.com/SChernykh/p2pool / realloc_hook

Function realloc_hook

src/memory_leak_debug.cpp:284–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void* realloc_hook(void* ptr, size_t size) noexcept
285{
286 remove_allocation(ptr);
287
288 void* p = realloc(ptr, size);
289 if (p) {
290 add_alocation(p, size);
291 }
292 return p;
293}
294
295void* calloc_hook(size_t count, size_t size) noexcept
296{

Callers 1

send_internalMethod · 0.85

Calls 2

remove_allocationFunction · 0.85
add_alocationFunction · 0.85

Tested by

no test coverage detected