mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
Fix missing parameter in mi_free error message
This commit is contained in:
parent
076f815cec
commit
c21b6df51e
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ static inline mi_segment_t* mi_checked_ptr_segment(const void* p, const char* ms
|
||||||
#endif
|
#endif
|
||||||
#if (MI_DEBUG>0 || MI_SECURE>=4)
|
#if (MI_DEBUG>0 || MI_SECURE>=4)
|
||||||
if (mi_unlikely(_mi_ptr_cookie(segment) != segment->cookie)) {
|
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
|
#endif
|
||||||
return segment;
|
return segment;
|
||||||
|
|
Loading…
Add table
Reference in a new issue