From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 15 Jun 2020 15:19:06 +0000 (-0700) Subject: bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886) X-Git-Tag: v3.9.0b4~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bab0833d49f8d38488ff1469edcec9b47db0dc5c;p=thirdparty%2FPython%2Fcpython.git bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886) bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv. (cherry picked from commit e2d47a0568c6da9229580829917fd6aa702133b3) Co-authored-by: Victor Stinner --- diff --git a/Python/initconfig.c b/Python/initconfig.c index 998ceb7bbfa5..885525b41848 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -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 }