mirror of
https://github.com/python/cpython.git
synced 2026-05-29 22:01:05 +00:00
gh-149122: Fix refleak in codegen (GH-149179)
This commit is contained in:
parent
7fe51ceae8
commit
4599335a83
1 changed files with 2 additions and 0 deletions
|
|
@ -3962,8 +3962,10 @@ maybe_optimize_function_call(compiler *c, expr_ty e, jump_target_label end)
|
|||
expr_ty generator_exp = asdl_seq_GET(args, 0);
|
||||
PySTEntryObject *generator_entry = _PySymtable_Lookup(SYMTABLE(c), (void *)generator_exp);
|
||||
if (generator_entry->ste_coroutine) {
|
||||
Py_DECREF(generator_entry);
|
||||
return 0;
|
||||
}
|
||||
Py_DECREF(generator_entry);
|
||||
|
||||
location loc = LOC(func);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue