Skip to content

Commit

Permalink
mem/mem_pool: fix mem_pool_extend new member destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jan 21, 2025
1 parent 5c59013 commit 95b7e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mem/mem_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int mem_pool_extend(struct mem_pool *pool, size_t num)

/* Allocate new members */
for (; i < nmemb; i++) {
objs[i].member = mem_zalloc(pool->membsize, NULL);
objs[i].member = mem_zalloc(pool->membsize, pool->membdh);
if (!objs[i].member) {
mem_deref(objs);
mtx_unlock(pool->lock);
Expand Down

0 comments on commit 95b7e4f

Please sign in to comment.