summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lib/test_typelist.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib/test_typelist.h b/tests/lib/test_typelist.h
index 379a2396b4..be37a9e6c9 100644
--- a/tests/lib/test_typelist.h
+++ b/tests/lib/test_typelist.h
@@ -239,6 +239,13 @@ static void concat(test_, TYPE)(void)
ts_hash_headx(
&head, "swap2b",
"a538546a6e6ab0484e925940aa8dd02fd934408bbaed8cb66a0721841584d838");
+
+ while (list_pop(&other))
+ ;
+ list_fini(&other);
+ prng_free(prng_swap);
+
+ ts_ref("swap-cleanup");
#endif /* !IS_ATOMIC */
k = 0;
@@ -449,6 +456,13 @@ static void concat(test_, TYPE)(void)
ts_hash_head(
&head, "swap2b",
"eabfcf1413936daaf20965abced95762f45110a6619b84aac7d38481bce4ea19");
+
+ while (list_pop(&other))
+ ;
+ list_fini(&other);
+ prng_free(prng_swap);
+
+ ts_ref("swap-cleanup");
#endif
for (i = 0; i < NITEM / 2; i++) {
@@ -650,6 +664,7 @@ static void concat(test_, TYPE)(void)
list_fini(&head);
ts_ref("fini");
ts_end();
+ prng_free(prng);
printfrr("%s end\n", str(TYPE));
}