From 7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 6 Mar 2019 00:36:56 +0100 Subject: bpo-36142: _PyPreConfig_Write() sets the allocator (GH-12186) * _PyPreConfig_Write() now sets the memory allocator. * _PyPreConfig_Write() gets a return type: _PyInitError. * _Py_InitializeCore() now reads and writes the pre-configuration (set the memory allocator, configure the locale) before reading and writing the core configuration. --- Modules/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Modules/main.c') diff --git a/Modules/main.c b/Modules/main.c index 34032adca5..9a2347e2b2 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -304,8 +304,7 @@ preconfig_read_write(_PyPreConfig *config, const _PyArgv *args) return err; } - _PyPreConfig_Write(config); - return _Py_INIT_OK(); + return _PyPreConfig_Write(config); } -- cgit v1.2.1