MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / malloc

Function malloc

src/SB/Core/gc/iSystem.cpp:345–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 void* result = OSAllocFromHeap(the_heap, __size);
344
345 if (result == NULL)
346 {
347 null_func();
348 }
349
350 return result;
351}
352
353void free(void* __ptr)
354{
355 if (__ptr != NULL)
356 {
357 OSFreeToHeap(the_heap, __ptr);
358 }
359}
360}
361
362static void _rwDolphinHeapFree(void* __ptr)
363{

Callers 2

_rwDolphinHeapAllocFunction · 0.70
xMemInitHeapFunction · 0.50

Calls 2

OSAllocFromHeapFunction · 0.85
null_funcFunction · 0.85

Tested by

no test coverage detected