]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Jun 2020 15:19:06 +0000 (08:19 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2020 15:19:06 +0000 (08:19 -0700)
bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
(cherry picked from commit e2d47a0568c6da9229580829917fd6aa702133b3)

Co-authored-by: Victor Stinner <vstinner@python.org>
Python/initconfig.c

index 998ceb7bbfa5107af5f922b25ff1891302785ef8..885525b41848d6895f99504fd8d620c007b80509 100644 (file)
@@ -601,6 +601,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
 }