On Sunday, 24 January 2021 at 11:00:17 UTC, vitamin wrote: > It is Ok when I call deallocate with smaller slice or I need > track exact lengtht? It depends on the specific allocator, but in general, it is only guaranteed to work correctly if the slice you pass to deallocate is exactly the same as the one you got from allocate.