check against nullptr

v1
Brett 2024-01-24 17:37:01 -05:00
parent b383fb0d16
commit 2ef516e66a
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ namespace blt
void deallocate(pointer p, size_t n) noexcept void deallocate(pointer p, size_t n) noexcept
{ {
if (p == nullptr)
return;
// for (size_t i = 0; i < n; i++) // for (size_t i = 0; i < n; i++)
// p[i].~T(); // p[i].~T();
for (auto*& blk : blocks) for (auto*& blk : blocks)