hashmap: expose helper for releasing memory pools independently of valgrind

Let's clean this up and export this always, so that we can later call
when we are under memory pressure.
This commit is contained in:
Lennart Poettering
2023-02-17 14:59:54 +01:00
parent a133d2c366
commit 9a0f0ef557
4 changed files with 20 additions and 18 deletions
-2
View File
@@ -70,7 +70,6 @@ void mempool_free_tile(struct mempool *mp, void *p) {
mp->freelist = p;
}
#if VALGRIND
void mempool_drop(struct mempool *mp) {
struct pool *p = mp->first_pool;
while (p) {
@@ -80,4 +79,3 @@ void mempool_drop(struct mempool *mp) {
p = n;
}
}
#endif