KAKIHARUKA
KAKIHARUKA
> My guess is that `mimalloc-override.dll` is not loaded early enough and that the CRT allocates some locale structure using the standard allocator before mimalloc is redirected. Later on, it...
It appears that certain internal functions in the ucrtbase version 10.0.10586 (e.g., _wsetlocale_get_all) directly invoke HeapAlloc. I suspect this behavior could bypass mimalloc's memory allocation hooks. If paired with mi_free...
> My guess is that `mimalloc-override.dll` is not loaded early enough and that the CRT allocates some locale structure using the standard allocator before mimalloc is redirected. Later on, it...
@daanx Simpler way to reproduce the issue: ``` int main() { mi_version(); //Ensure linking against the mimalloc. setlocale(LC_CTYPE, ""); setlocale(LC_ALL, NULL); setlocale(LC_ALL, ""); return 0; } ``` [ucrtbase.zip](https://github.com/user-attachments/files/19679123/ucrtbase.zip)