diff --git a/lib/slab.c b/lib/slab.c index 935e3546..ab913f0c 100644 --- a/lib/slab.c +++ b/lib/slab.c @@ -245,6 +245,17 @@ sl_new(pool *p, uint size) return s; } +/** + * sl_delete - destroy an existing Slab + * @s: slab + * + * This function destroys the given Slab. + */ +void sl_delete(slab *s) +{ + rfree(&s->r); +} + /** * sl_alloc - allocate an object from Slab * @s: slab