aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-10-25 15:58:28 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-12-01 18:46:52 +0100
commita3b7a75370b218341bce534fa394edca6ac4a1c1 (patch)
tree52e61a2d5d65bb7175dc73779a7eaf023984146e
parent47a11fdfdfbfde02e19f3d10a8ef0ebd723c2eb6 (diff)
Fix: update mempool accounting when freeing an object
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--lib/util/mempool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/mempool.c b/lib/util/mempool.c
index 5191fa2..ddadc40 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;
}