From 725e668ac8c966fb007d5bd862bff3b5d44a889c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 7 Jul 2013 03:06:16 +0200 Subject: Issue #3329: Fix _PyObject_ArenaVirtualFree() According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE. --- Objects/obmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index d08515d..97a137d 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -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) -- cgit v0.12