summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-15 15:19:06 (GMT)
committerGitHub <noreply@github.com>2020-06-15 15:19:06 (GMT)
commitbab0833d49f8d38488ff1469edcec9b47db0dc5c (patch)
tree893ace2d0b49160ab356836e92b4fc47601ee49f /Python
parent30b59fd7cf946f7163283eef7d4389bd4e582492 (diff)
downloadcpython-bab0833d49f8d38488ff1469edcec9b47db0dc5c.zip
cpython-bab0833d49f8d38488ff1469edcec9b47db0dc5c.tar.gz
cpython-bab0833d49f8d38488ff1469edcec9b47db0dc5c.tar.bz2
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 <vstinner@python.org>
Diffstat (limited to 'Python')
-rw-r--r--Python/initconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c
index 998ceb7..885525b 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
}