Kaydet (Commit) 725e668a authored tarafından Victor Stinner's avatar Victor Stinner

Issue #3329: Fix _PyObject_ArenaVirtualFree()

According to VirtualFree() documentation, the size must be zero if the "free
type" is MEM_RELEASE.
üst 24e33acf
...@@ -68,7 +68,7 @@ _PyObject_ArenaVirtualAlloc(void *ctx, size_t size) ...@@ -68,7 +68,7 @@ _PyObject_ArenaVirtualAlloc(void *ctx, size_t size)
static void static void
_PyObject_ArenaVirtualFree(void *ctx, void *ptr, size_t size) _PyObject_ArenaVirtualFree(void *ctx, void *ptr, size_t size)
{ {
VirtualFree(ptr, size, MEM_RELEASE); VirtualFree(ptr, 0, MEM_RELEASE);
} }
#elif defined(ARENAS_USE_MMAP) #elif defined(ARENAS_USE_MMAP)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment