fix: fix memory leaks

This commit is contained in:
2026-03-04 07:41:40 +01:00
parent eb69bdb5fb
commit 624b1e7e69
5 changed files with 44 additions and 2 deletions
+1 -2
View File
@@ -92,8 +92,7 @@ namespace Montauk {
buf[count].name[j] = proc->name[j];
buf[count].name[j] = '\0';
}
buf[count].heapUsed = (proc->heapNext > Sched::UserHeapBase)
? proc->heapNext - Sched::UserHeapBase : 0;
buf[count].heapUsed = Sched::g_allocatedPages[i] * 0x1000;
count++;
}
return count;