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:
Victor Stinner 2013-07-07 03:06:16 +02:00
parent 24e33acf8c
commit 725e668ac8
1 changed files with 1 additions and 1 deletions

View File

@ -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)