MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_reallocf

Function mi_reallocf

system/lib/mimalloc/src/alloc.c:449–451  ·  view source on GitHub ↗

Reallocate but free `p` on errors

Source from the content-addressed store, hash-verified

447
448// Reallocate but free `p` on errors
449mi_decl_nodiscard void* mi_reallocf(void* p, size_t newsize) mi_attr_noexcept {
450 return mi_theap_reallocf(_mi_theap_default(),p,newsize);
451}
452
453mi_decl_nodiscard void* mi_rezalloc(void* p, size_t newsize) mi_attr_noexcept {
454 return mi_theap_rezalloc(_mi_theap_default(), p, newsize);

Callers

nothing calls this directly

Calls 2

mi_theap_reallocfFunction · 0.85
_mi_theap_defaultFunction · 0.85

Tested by

no test coverage detected