mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
GH-87849: Fix refleak in SEND instruction. (GH-101908)
Fix refleak in SEND instruction.
This commit is contained in:
parent
e8b6aaad2f
commit
c7766245c1
2 changed files with 2 additions and 0 deletions
|
@ -727,6 +727,7 @@ dummy_func(
|
|||
else {
|
||||
assert(retval != NULL);
|
||||
}
|
||||
Py_DECREF(v);
|
||||
}
|
||||
|
||||
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
|
||||
|
|
1
Python/generated_cases.c.h
generated
1
Python/generated_cases.c.h
generated
|
@ -934,6 +934,7 @@
|
|||
else {
|
||||
assert(retval != NULL);
|
||||
}
|
||||
Py_DECREF(v);
|
||||
POKE(1, retval);
|
||||
JUMPBY(1);
|
||||
DISPATCH();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue