• Victor Stinner's avatar
    bpo-32030: Fix usage of memory allocators (#4953) · 31e99080
    Victor Stinner authored
    * _Py_InitializeCore() doesn't call _PyMem_SetupAllocators() anymore
      if the PYTHONMALLOC environment variable is not set.
    * pymain_cmdline() now sets the allocator to the default, instead of
      setting the allocator in subfunctions.
    * Py_SetStandardStreamEncoding() now calls
      _PyMem_SetDefaultAllocator() to get a known allocator, to be able
      to release the memory with the same allocator.
    31e99080
main.c 70.4 KB