Skip to content

Commit e2d47a0

Browse files
authored
bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
1 parent fb61c42 commit e2d47a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/initconfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ PyConfig_Clear(PyConfig *config)
600600
CLEAR(config->run_module);
601601
CLEAR(config->run_filename);
602602
CLEAR(config->check_hash_pycs_mode);
603+
604+
_PyWideStringList_Clear(&config->_orig_argv);
603605
#undef CLEAR
604606
}
605607

0 commit comments

Comments
 (0)