This commit is contained in:
Dmitry Yanovsky 2025-04-04 01:24:34 +08:00 committed by GitHub
commit a540206782
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}