Fix memleak in test_dwarf & test_skyline (#18169)

This commit is contained in:
Liumeo 2021-01-04 13:35:13 -05:00 committed by GitHub
parent 596ae026bf
commit e798400942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -748,6 +748,7 @@ bool test_dwarf_cpp_empty_line_info(void) { // this should work for dwarf2 aswel
r_list_free (line_list);
r_bin_dwarf_free_debug_abbrev (da);
r_io_free (io);
r_bin_free (bin);
mu_end;
}

View File

@ -17,6 +17,7 @@ bool test_r_skyline(void) {
mu_assert_true (r_skyline_contains (&sky, 0) && r_skyline_contains (&sky, 3),
"Skyline should still contain 0 to 3 after overlap");
mu_assert_eq ((size_t)r_skyline_get (&sky, 0), 3, "r_skyline_get should get third map");
r_skyline_fini (&sky);
mu_end;
}