diff --git a/core/slab.hh b/core/slab.hh index e661ef5cfc..91684f69f7 100644 --- a/core/slab.hh +++ b/core/slab.hh @@ -222,7 +222,7 @@ public: auto objects = max_object_size / _size; desc = new slab_page_desc(slab_page, objects, _size, _slab_class_id, slab_page_index); } catch (const std::bad_alloc& e) { - // FIXME: Is there really a need to re-throw std::bad_alloc? + ::free(slab_page); throw std::bad_alloc{}; }