]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Jun 2020 14:27:47 +0000 (16:27 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2020 14:27:47 +0000 (16:27 +0200)
bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.

Python/initconfig.c

index d8b3df885722fe93469b0e23f7c56817442b72bb..96169454506cb66647040685613e20db63866c48 100644 (file)
@@ -600,6 +600,8 @@ PyConfig_Clear(PyConfig *config)
     CLEAR(config->run_module);
     CLEAR(config->run_filename);
     CLEAR(config->check_hash_pycs_mode);
+
+    _PyWideStringList_Clear(&config->_orig_argv);
 #undef CLEAR
 }