diff --git a/h_malloc.c b/h_malloc.c index 5cdd1ec..7736177 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -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;