MCPcopy Create free account
hub / github.com/Singular/Singular / _omDebugFree

Function _omDebugFree

omalloc/omDebug.c:182–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void _omDebugFree(void* addr, void* size_bin,
183 omTrackFlags_t flags, OM_CFL_DECL)
184{
185 OM_R_DEF;
186 check = MAX(check, om_Opts.MinCheck);
187 check = MIN(check, om_Opts.MaxCheck);
188
189 if (check && _omCheckAddr(addr, size_bin, flags|OM_FUSED, check, omError_NoError, OM_FLR_VAL)) return;
190
191 __omDebugFree(addr,size_bin,flags, OM_FLR_VAL);
192
193#ifdef OM_INTERNAL_DEBUG
194 if (flags & OM_FBIN)
195 (void) _omCheckBin((omBin)size_bin, 1, check-1,omError_InternalBug, OM_FLR);
196 else
197 (void) _omCheckMemory(check-2,omError_InternalBug,OM_FLR);
198#endif
199}
200
201void* _omDebugMemDup(void* addr, omTrackFlags_t flags, OM_CTFL_DECL)
202{

Callers

nothing calls this directly

Calls 4

_omCheckAddrFunction · 0.85
__omDebugFreeFunction · 0.85
_omCheckBinFunction · 0.85
_omCheckMemoryFunction · 0.85

Tested by

no test coverage detected