Issue #3329: Fix _PyObject_ArenaVirtualFree()
According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE.
This commit is contained in:
parent
24e33acf8c
commit
725e668ac8
|
@ -68,7 +68,7 @@ _PyObject_ArenaVirtualAlloc(void *ctx, size_t size)
|
|||
static void
|
||||
_PyObject_ArenaVirtualFree(void *ctx, void *ptr, size_t size)
|
||||
{
|
||||
VirtualFree(ptr, size, MEM_RELEASE);
|
||||
VirtualFree(ptr, 0, MEM_RELEASE);
|
||||
}
|
||||
|
||||
#elif defined(ARENAS_USE_MMAP)
|
||||
|
|
Loading…
Reference in New Issue