[Python-checkins] bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
Victor Stinner
webhook-mailer at python.org
Mon Jun 15 10:27:55 EDT 2020
https://github.com/python/cpython/commit/e2d47a0568c6da9229580829917fd6aa702133b3
commit: e2d47a0568c6da9229580829917fd6aa702133b3
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2020-06-15T16:27:47+02:00
summary:
bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
files:
M Python/initconfig.c
diff --git a/Python/initconfig.c b/Python/initconfig.c
index d8b3df885722f..96169454506cb 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -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
}
More information about the Python-checkins
mailing list