gh-125234: Make PyInitConfig_Free(NULL) a no-op (#125266) · python/cpython@546dddc · GitHub
Skip to content

Commit 546dddc

Browse files
authored
gh-125234: Make PyInitConfig_Free(NULL) a no-op (#125266)
1 parent 92af191 commit 546dddc

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/c-api/init_config.rst

Lines changed: 2 additions & 0 deletions

Programs/_testembed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,7 @@ static int test_initconfig_api(void)
18961896
goto error;
18971897
}
18981898
PyInitConfig_Free(config);
1899+
PyInitConfig_Free(NULL);
18991900

19001901
dump_config();
19011902
Py_Finalize();

Python/initconfig.c

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)