remove unnecessary else

pull/151/head
Daniel Micay 2021-09-30 10:57:05 -04:00
parent 23969727d8
commit e41d37c3de
1 changed files with 2 additions and 3 deletions

View File

@ -764,10 +764,9 @@ static inline void deallocate_small(void *p, const size_t *expected_size) {
enqueue_free_slab(c, metadata);
mutex_unlock(&c->lock);
return;
} else {
memory_purge(slab, slab_size);
// handle out-of-memory by putting it into the empty slabs list
}
memory_purge(slab, slab_size);
// handle out-of-memory by putting it into the empty slabs list
}
metadata->next = c->empty_slabs;