[3.12] gh-119821: Fix refleak in LOAD_FROM_DICT_OR_GLOBALS (#119975)

This commit is contained in:
Jelle Zijlstra 2024-06-03 12:26:25 -07:00 committed by GitHub
parent 0480fd628a
commit 3bf7a5079c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 297 additions and 293 deletions

View file

@ -1209,6 +1209,7 @@ dummy_func(
format_exc_check_arg(tstate, PyExc_NameError,
NAME_ERROR_MSG, name);
}
Py_DECREF(mod_or_class_dict);
ERROR_IF(true, error);
}
Py_INCREF(v);
@ -1230,6 +1231,7 @@ dummy_func(
tstate, PyExc_NameError,
NAME_ERROR_MSG, name);
}
Py_DECREF(mod_or_class_dict);
ERROR_IF(true, error);
}
}

File diff suppressed because it is too large Load diff