mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-35454: Fix miscellaneous minor issues in error handling. (#11077)
* bpo-35454: Fix miscellaneous minor issues in error handling. * Fix a null pointer dereference.
This commit is contained in:
parent
bb86bf4c4e
commit
8905fcc85a
9 changed files with 44 additions and 23 deletions
|
@ -362,10 +362,14 @@ remove_unusable_flags(PyObject *m)
|
|||
else {
|
||||
if (PyDict_GetItemString(
|
||||
dict,
|
||||
win_runtime_flags[i].flag_name) != NULL) {
|
||||
PyDict_DelItemString(
|
||||
dict,
|
||||
win_runtime_flags[i].flag_name);
|
||||
win_runtime_flags[i].flag_name) != NULL)
|
||||
{
|
||||
if (PyDict_DelItemString(
|
||||
dict,
|
||||
win_runtime_flags[i].flag_name))
|
||||
{
|
||||
PyErr_Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue