summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-07 01:06:16 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-07 01:06:16 (GMT)
commit725e668ac8c966fb007d5bd862bff3b5d44a889c (patch)
tree6b4533ea2b7fe2d99ee54806311be5cfe2945dd6 /Objects/obmalloc.c
parent24e33acf8c422f6b8f84387242ff7874012f7291 (diff)
downloadcpython-725e668ac8c966fb007d5bd862bff3b5d44a889c.zip
cpython-725e668ac8c966fb007d5bd862bff3b5d44a889c.tar.gz
cpython-725e668ac8c966fb007d5bd862bff3b5d44a889c.tar.bz2
Issue #3329: Fix _PyObject_ArenaVirtualFree()
According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c2
1 files changed, 1 insertions, 1 deletions
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)