bpo-32030: Fix usage of memory allocators (#4953)
* _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.
V
Victor Stinner committed
31e99080f6f8cf7faaba9fe3a4e0996e49163317
Parent: 83cb778
Committed by GitHub <noreply@github.com>
on 12/20/2017, 10:41:38 PM