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

Function operator delete

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

Source from the content-addressed store, hash-verified

305
306
307void operator delete(void* ptr)
308{
309 if (ptr) {
310 ptr = static_cast<char*>(ptr) - sizeof(alloc_node); // correct offset
311 if (Tracking) {
312 Lock l(mutex);
313 ++DeAllocs;
314 remove(ptr);
315 }
316 free(ptr);
317 }
318}
319
320
321void* operator new[](size_t sz)

Callers 3

operator delete[]Function · 0.70
XREALLOCFunction · 0.70
XFREEFunction · 0.70

Calls 1

removeFunction · 0.85

Tested by

no test coverage detected