mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #3329: Fix _PyObject_ArenaVirtualFree()
According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE.
This commit is contained in:
parent
24e33acf8c
commit
725e668ac8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue