Fault on double free detection by default

This commit is contained in:
Carlos Cheung 2024-01-22 14:50:49 -05:00
parent 4e50d6714d
commit f6285b33af

View file

@ -212,7 +212,7 @@ static mi_decl_noinline bool mi_check_is_double_freex(const mi_page_t* page, con
mi_list_contains(page, page->local_free, block) ||
mi_list_contains(page, mi_page_thread_free(page), block))
{
_mi_error_message(EAGAIN, "double free detected of block %p with size %zu\n", block, mi_page_block_size(page));
_mi_error_message(EFAULT, "double free detected of block %p with size %zu\n", block, mi_page_block_size(page));
return true;
}
return false;