1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Slab allocator can free the blocks without knowing the parent structure

This commit is contained in:
Maria Matejka
2022-04-04 20:31:14 +02:00
parent 3a6eda995e
commit ebd807c0b8
13 changed files with 128 additions and 125 deletions

View File

@@ -475,7 +475,7 @@ fib_delete(struct fib *f, void *E)
}
if (f->fib_slab)
sl_free(f->fib_slab, E);
sl_free(E);
else
mb_free(E);