mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Add warn message when trying to free an already freed page
This commit is contained in:
parent
feb1af5984
commit
e008796515
@ -189,7 +189,10 @@ namespace Memory
|
||||
}
|
||||
size_t Index = (size_t)Address / PAGE_SIZE;
|
||||
if (unlikely(PageBitmap[Index] == false))
|
||||
{
|
||||
warn("Tried to free an already free page. (%p)", Address);
|
||||
return;
|
||||
}
|
||||
|
||||
if (PageBitmap.Set(Index, false))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user