Skip to content

bpo-36301: Fix Py_Main() memory leaks#12420

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:pathconfig_free
Mar 18, 2019
Merged

bpo-36301: Fix Py_Main() memory leaks#12420
vstinner merged 1 commit intopython:masterfrom
vstinner:pathconfig_free

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 18, 2019

bpo-36301, bpo-36333:

  • Fix memory allocator used by _PyPathConfig_ClearGlobal():
    force the default allocator.
  • _PyPreConfig_ReadFromArgv(): free init_ctype_locale memory.
  • pymain_main(): call pymain_free() on init error

Co-Authored-By: Stéphane Wirtel stephane@wirtel.be

https://bugs.python.org/issue36301

bpo-36301, bpo-36333:

* Fix memory allocator used by _PyPathConfig_ClearGlobal():
  force the default allocator.
* _PyPreConfig_ReadFromArgv(): free init_ctype_locale memory.
* pymain_main(): call pymain_free() on init error

Co-Authored-By: Stéphane Wirtel <stephane@wirtel.be>
@vstinner vstinner merged commit c183444 into python:master Mar 18, 2019
@vstinner vstinner deleted the pathconfig_free branch March 18, 2019 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants