remove unnecessary else
parent
23969727d8
commit
e41d37c3de
|
@ -764,11 +764,10 @@ static inline void deallocate_small(void *p, const size_t *expected_size) {
|
||||||
enqueue_free_slab(c, metadata);
|
enqueue_free_slab(c, metadata);
|
||||||
mutex_unlock(&c->lock);
|
mutex_unlock(&c->lock);
|
||||||
return;
|
return;
|
||||||
} else {
|
}
|
||||||
memory_purge(slab, slab_size);
|
memory_purge(slab, slab_size);
|
||||||
// handle out-of-memory by putting it into the empty slabs list
|
// handle out-of-memory by putting it into the empty slabs list
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
metadata->next = c->empty_slabs;
|
metadata->next = c->empty_slabs;
|
||||||
c->empty_slabs = metadata;
|
c->empty_slabs = metadata;
|
||||||
|
|
Loading…
Reference in New Issue