mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-125234: Make PyInitConfig_Free(NULL) a no-op (#125266)
This commit is contained in:
parent
92af191a6a
commit
546dddca43
3 changed files with 6 additions and 0 deletions
|
@ -3457,6 +3457,9 @@ PyInitConfig_Create(void)
|
|||
void
|
||||
PyInitConfig_Free(PyInitConfig *config)
|
||||
{
|
||||
if (config == NULL) {
|
||||
return;
|
||||
}
|
||||
free(config->err_msg);
|
||||
free(config);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue