check against nullptr
parent
b383fb0d16
commit
2ef516e66a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue