aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 7294e413a7..9b427cfa76 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -2142,13 +2142,15 @@ test_mempool(void)
//mp_pool_assert_ok(pool);
}
if (crypto_rand_int(777)==0)
- mp_pool_clean(pool);
+ mp_pool_clean(pool, 2);
if (i % 777)
mp_pool_assert_ok(pool);
}
SMARTLIST_FOREACH(allocated, void *, m, mp_pool_release(m));
mp_pool_assert_ok(pool);
+ mp_pool_clean(pool, 0);
+ mp_pool_assert_ok(pool);
mp_pool_destroy(pool);
smartlist_free(allocated);
}