diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-10-25 15:58:28 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-11-04 12:13:34 +0100 |
commit | b934928842c12cf270106779d20f0f3bc54fa611 (patch) | |
tree | f41cede2a66d4e9f9c2f02f24a5428936faf2feb /lib/util | |
parent | 20b963c15b391999b5915649ccab60403f5e0f8f (diff) |
Fix: update mempool accounting when freeing an object
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/mempool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/mempool.c b/lib/util/mempool.c index 229ab28..e2ddaf0 100644 --- a/lib/util/mempool.c +++ b/lib/util/mempool.c @@ -212,4 +212,5 @@ void mem_pool_free(mem_pool_t *mem, void *ptr) assert((it->bitmap[i] & (1 << j)) != 0); it->bitmap[i] &= ~(1 << j); + it->obj_free += 1; } |