Fix memleak in test_dwarf & test_skyline (#18169)
This commit is contained in:
parent
596ae026bf
commit
e798400942
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue