mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
Merge 6f294412c5
into af21001f7a
This commit is contained in:
commit
a540206782
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