free segment map when destroy_on_exit is set

This commit is contained in:
Javier Blazquez 2024-12-22 22:24:13 -08:00
parent 7085b6cec3
commit 83dacd190e
3 changed files with 12 additions and 0 deletions

View file

@ -682,6 +682,7 @@ void mi_cdecl _mi_process_done(void) {
mi_collect(true /* force */);
_mi_heap_unsafe_destroy_all(); // forcefully release all memory held by all heaps (of this thread only!)
_mi_arena_unsafe_destroy_all();
_mi_segment_map_destroy();
}
if (mi_option_is_enabled(mi_option_show_stats) || mi_option_is_enabled(mi_option_verbose)) {