mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-119821: Fix refleak in LOAD_FROM_DICT_OR_GLOBALS (#119975)
This commit is contained in:
parent
0480fd628a
commit
3bf7a5079c
2 changed files with 297 additions and 293 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
588
Python/generated_cases.c.h
generated
588
Python/generated_cases.c.h
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue