changeset: 84473:51ed51d10e60 user: Victor Stinner date: Sun Jul 07 03:06:16 2013 +0200 files: Objects/obmalloc.c description: Issue #3329: Fix _PyObject_ArenaVirtualFree() According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE. diff -r fcf079dece0d -r 51ed51d10e60 Objects/obmalloc.c --- a/Objects/obmalloc.c Sun Jul 07 02:49:07 2013 +0200 +++ b/Objects/obmalloc.c Sun Jul 07 03:06:16 2013 +0200 @@ -68,7 +68,7 @@ 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)