mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-17 04:48:08 +08:00
Merge pull request #464 from JJL772/master
Fix `_mi_error_message` printf formatting error
This commit is contained in:
commit
d49b3a95a2
@ -465,7 +465,7 @@ static inline mi_segment_t* mi_checked_ptr_segment(const void* p, const char* ms
|
||||
#endif
|
||||
#if (MI_DEBUG>0 || MI_SECURE>=4)
|
||||
if (mi_unlikely(_mi_ptr_cookie(segment) != segment->cookie)) {
|
||||
_mi_error_message(EINVAL, "%s: pointer does not point to a valid heap space: %p\n", p);
|
||||
_mi_error_message(EINVAL, "%s: pointer does not point to a valid heap space: %p\n", msg, p);
|
||||
}
|
||||
#endif
|
||||
return segment;
|
||||
|
Loading…
x
Reference in New Issue
Block a user