diff --git a/c/tests/test_stats.c b/c/tests/test_stats.c index a05b55d28d..b84ff1fe87 100644 --- a/c/tests/test_stats.c +++ b/c/tests/test_stats.c @@ -2359,6 +2359,8 @@ test_two_site_backmutation(void) CU_ASSERT_EQUAL(result_size, 3); /* assert_arrays_almost_equal(result_size, result, truth_r2); */ tsk_safe_free(result); + + tsk_treeseq_free(&ts); } static void @@ -2411,6 +2413,8 @@ test_two_locus_stat_input_errors(void) NULL, 0, &result_size, &result); CU_ASSERT_EQUAL_FATAL(ret, TSK_ERR_NODE_OUT_OF_BOUNDS); sample_sets[1] = 1; + + tsk_treeseq_free(&ts); } static void