MCPcopy Create free account
hub / github.com/beefytech/Beef / StompFree

Function StompFree

BeefySysLib/util/AllocDebug.cpp:227–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void StompFree(void* addr)
228{
229 if (gSA_CritSect == NULL)
230 StompInit();
231
232 AutoCrit autoCrit(*gSA_CritSect);
233
234 bool leaveAllocated = true;
235 for (auto& alloc : *gAllocRanges)
236 {
237 if (alloc.Free(addr, leaveAllocated))
238 return;
239 }
240
241 free(addr);
242 //assert("Invalid address" == 0);
243}
244
245//////////////////////////////////////////////////////////////////////////
246

Callers 5

ClearMethod · 0.70
deallocateMethod · 0.70
rawDeallocateMethod · 0.70
operator deleteFunction · 0.70
operator delete[]Function · 0.70

Calls 3

StompInitFunction · 0.85
freeFunction · 0.50
FreeMethod · 0.45

Tested by

no test coverage detected