WIP : trying to fix oversized yet again...

This commit is contained in:
2025-01-04 10:16:22 -05:00
parent d6e232b3f7
commit 83b7098ce9
4 changed files with 33 additions and 26 deletions

View File

@ -331,6 +331,9 @@ slab_allocator_proc :: proc(
return slab_alloc( slab, size, alignment, (mode != .Alloc_Non_Zeroed), loc)
case .Free:
if old_memory == nil {
return
}
slab_free( slab, byte_slice( old_memory, int(old_size)), loc )
case .Free_All: