commit | 31e99080f6f8cf7faaba9fe3a4e0996e49163317 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Dec 20 23:41:38 2017 +0100 |
committer | GitHub <noreply@github.com> | Wed Dec 20 23:41:38 2017 +0100 |
tree | 918783a9df15a34a36405fdf7d0809102ccd90ea | |
parent | 83cb778b4a3f856f2243b0f0d36fefb5c44b388f [diff] |
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.