mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix initialization of union padding; issue found through valgrind by @jasongibson
This commit is contained in:
parent
9a33f23b5f
commit
0af9dd6fd2
1 changed files with 1 additions and 0 deletions
|
@ -205,6 +205,7 @@ static bool mi_region_try_alloc_os(size_t blocks, bool commit, bool allow_large,
|
|||
|
||||
// and share it
|
||||
mi_region_info_t info;
|
||||
info.value = 0; // initialize the full union to zero
|
||||
info.x.valid = true;
|
||||
info.x.is_large = region_large;
|
||||
info.x.numa_node = (short)_mi_os_numa_node(tld);
|
||||
|
|
Loading…
Add table
Reference in a new issue