Skip to content

Commit bab0833

Browse files
bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)
bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv. (cherry picked from commit e2d47a0) Co-authored-by: Victor Stinner <[email protected]>
1 parent 30b59fd commit bab0833

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
@@ -601,6 +601,8 @@ PyConfig_Clear(PyConfig *config)
601601
CLEAR(config->run_module);
602602
CLEAR(config->run_filename);
603603
CLEAR(config->check_hash_pycs_mode);
604+
605+
_PyWideStringList_Clear(&config->_orig_argv);
604606
#undef CLEAR
605607
}
606608

0 commit comments

Comments
 (0)