From 751e4567674420b165fa643e779fae239f3e3860 Mon Sep 17 00:00:00 2001 From: daan Date: Mon, 31 Oct 2022 08:34:20 -0700 Subject: [PATCH 1/2] possible fix for warning in issue #635 --- src/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.c b/src/os.c index 1640657e..fe9c2959 100644 --- a/src/os.c +++ b/src/os.c @@ -373,7 +373,7 @@ static bool mi_os_mem_free(void* addr, size_t size, bool was_committed, mi_stats // In mi_os_mem_alloc_aligned the fallback path may have returned a pointer inside // the memory region returned by VirtualAlloc; in that case we need to free using // the start of the region. - MEMORY_BASIC_INFORMATION info = { 0, 0 }; + MEMORY_BASIC_INFORMATION info = { 0 }; VirtualQuery(addr, &info, sizeof(info)); if (info.AllocationBase < addr && ((uint8_t*)addr - (uint8_t*)info.AllocationBase) < (ptrdiff_t)MI_SEGMENT_SIZE) { errcode = 0; From bdc9dc3e4e10dc77cb3415dc1a82d75bd577a4cb Mon Sep 17 00:00:00 2001 From: daan Date: Mon, 31 Oct 2022 10:12:13 -0700 Subject: [PATCH 2/2] update vs project for valgrind --- ide/vs2022/mimalloc-override.vcxproj | 1 + ide/vs2022/mimalloc.vcxproj | 1 + 2 files changed, 2 insertions(+) diff --git a/ide/vs2022/mimalloc-override.vcxproj b/ide/vs2022/mimalloc-override.vcxproj index d50c4e6a..d674108b 100644 --- a/ide/vs2022/mimalloc-override.vcxproj +++ b/ide/vs2022/mimalloc-override.vcxproj @@ -214,6 +214,7 @@ + diff --git a/ide/vs2022/mimalloc.vcxproj b/ide/vs2022/mimalloc.vcxproj index b0ffe335..29f732d1 100644 --- a/ide/vs2022/mimalloc.vcxproj +++ b/ide/vs2022/mimalloc.vcxproj @@ -246,6 +246,7 @@ +