mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
pmm: add assert against use after free
This commit is contained in:
@@ -168,6 +168,7 @@ void *pmm_allocpage(int section) {
|
||||
page = freelists[i];
|
||||
if (page) {
|
||||
removefromfreelist(page);
|
||||
__assert(page->refcount == 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user