1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

Kernel: Use kfree_sized() in SlabAllocator

This commit is contained in:
Andreas Kling 2021-12-26 18:05:22 +01:00
parent 8f3b3af5ea
commit 83dd93ff13

View file

@ -68,7 +68,7 @@ public:
{ {
VERIFY(ptr); VERIFY(ptr);
if (ptr < m_base || ptr >= m_end) { if (ptr < m_base || ptr >= m_end) {
kfree(ptr); kfree_sized(ptr, slab_size());
return; return;
} }
FreeSlab* free_slab = (FreeSlab*)ptr; FreeSlab* free_slab = (FreeSlab*)ptr;