mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
||||
_PyObject_ArenaVirtualFree(void *ctx, void *ptr, size_t size)
|
||||
{
|
||||
VirtualFree(ptr, size, MEM_RELEASE);
|
||||
VirtualFree(ptr, 0, MEM_RELEASE);
|
||||
}
|
||||
|
||||
#elif defined(ARENAS_USE_MMAP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue