]> granicus.if.org Git - python/commit
bpo-36301: Fix Py_Main() memory leaks (GH-12420)
authorVictor Stinner <vstinner@redhat.com>
Mon, 18 Mar 2019 21:24:28 +0000 (22:24 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2019 21:24:28 +0000 (22:24 +0100)
commitc183444f7e2640b054956474d71aae6e8d31a543
treeaf6f895fc245d43f78618918fef63e37ce7b5196
parenta10d426bab66a4e1f20d5e1b9aee3dbb435cf309
bpo-36301: Fix Py_Main() memory leaks (GH-12420)

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>
Modules/main.c
Python/pathconfig.c
Python/preconfig.c