mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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 {
|
else {
|
||||||
assert(retval != NULL);
|
assert(retval != NULL);
|
||||||
}
|
}
|
||||||
|
Py_DECREF(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
|
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 {
|
else {
|
||||||
assert(retval != NULL);
|
assert(retval != NULL);
|
||||||
}
|
}
|
||||||
|
Py_DECREF(v);
|
||||||
POKE(1, retval);
|
POKE(1, retval);
|
||||||
JUMPBY(1);
|
JUMPBY(1);
|
||||||
DISPATCH();
|
DISPATCH();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue