MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / XREALLOC

Function XREALLOC

extra/yassl/taocrypt/test/memory.cpp:340–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void* XREALLOC(void* ptr, size_t sz, void* heap)
341{
342 void* ret = ::operator new(sz);
343
344 if (ret && ptr)
345 memcpy(ret, ptr, sz);
346
347 if (ret)
348 ::operator delete(ptr);
349 return ret;
350}
351
352
353void XFREE(void* ptr, void* heap)

Callers

nothing calls this directly

Calls 2

operator newFunction · 0.70
operator deleteFunction · 0.70

Tested by

no test coverage detected