mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 09:14:38 +03:00
Merge 6f294412c5
into 09a27098aa
This commit is contained in:
commit
4e00690a8c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ mi_decl_nodiscard size_t mi_malloc_good_size(size_t size) mi_attr_noexcept {
|
|||
}
|
||||
|
||||
void mi_cfree(void* p) mi_attr_noexcept {
|
||||
if (mi_is_in_heap_region(p)) {
|
||||
if (mi_is_in_heap_region(p) || mi_check_owned(p)) {
|
||||
mi_free(p);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue