mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
remove unnecessary else
This commit is contained in:
parent
23969727d8
commit
e41d37c3de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user