mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-19 05:29:32 +03:00
fix build errors
This commit is contained in:
parent
c8eeb8cc25
commit
d894e5362f
1 changed files with 2 additions and 2 deletions
4
src/os.c
4
src/os.c
|
@ -186,7 +186,7 @@ static void _mi_call_user_cleanup(void* p, size_t size)
|
|||
user_cleanup(cleanup_udata, p, size);
|
||||
#if (MI_DEBUG>1)
|
||||
else
|
||||
memset(start, 0, csize);
|
||||
memset(p, 0, size);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
|
@ -196,7 +196,7 @@ static void _mi_call_user_cleanup(void* p, size_t size)
|
|||
(void)size;
|
||||
#if (MI_DEBUG>1)
|
||||
if (MI_SECURE==0)
|
||||
memset(start, 0, csize); // pretend it is eagerly reset
|
||||
memset(p, 0, size); // pretend it is eagerly reset
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue