Skip to content

Commit

Permalink
eliminate two memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lkirk committed Sep 4, 2023
1 parent 2991d92 commit b90dfa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c/tests/test_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b90dfa1

Please sign in to comment.