diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 01:06:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-07 01:06:16 (GMT) |
commit | 725e668ac8c966fb007d5bd862bff3b5d44a889c (patch) | |
tree | 6b4533ea2b7fe2d99ee54806311be5cfe2945dd6 /Objects/obmalloc.c | |
parent | 24e33acf8c422f6b8f84387242ff7874012f7291 (diff) | |
download | cpython-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.c | 2 |
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) |