syMallocFinish

This commit is contained in:
krystalgamer 2024-08-27 17:06:12 +01:00
parent 58e60d228e
commit da263d7ca8
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,17 @@ i32 syRtcInit(void)
return 0;
}
// @Ok
// @Matching
void syMallocFinish(void)
{
while (gSysMemory)
{
error("MEMORY NOT FREE: %08X, %i\n", gSysMemory->mAddress, gSysMemory->mSize);
removeMemoryAlloc(gSysMemory);
}
}
// @Ok
INLINE void removeMemoryAlloc(MEMORY_ALLOC* pAlloc)
{

View File

@ -15,6 +15,7 @@ struct MEMORY_ALLOC
EXPORT i32 syRtcInit(void);
EXPORT void removeMemoryAlloc(MEMORY_ALLOC*);
EXPORT void syMallocFinish(void);
void validate_MEMORY_ALLOC(void);