commit | 725e668ac8c966fb007d5bd862bff3b5d44a889c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Sun Jul 07 03:06:16 2013 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Sun Jul 07 03:06:16 2013 +0200 |
tree | 6b4533ea2b7fe2d99ee54806311be5cfe2945dd6 | |
parent | 24e33acf8c422f6b8f84387242ff7874012f7291 [diff] [blame] |
Issue #3329: Fix _PyObject_ArenaVirtualFree() According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE.
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 @@ 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)