diff --git a/cpp11/zone.hpp b/cpp11/zone.hpp index a5635450..a152ae87 100644 --- a/cpp11/zone.hpp +++ b/cpp11/zone.hpp @@ -233,10 +233,6 @@ inline void* zone::allocate_expand(size_t size) if (!c) return nullptr; char* ptr = reinterpret_cast(c) + sizeof(chunk); - if (!ptr) { - ::free(c); - return nullptr; - } c->next_ = cl->head_; cl->head_ = c;