GH-87849: Fix refleak in SEND instruction. (GH-101908)

Fix refleak in SEND instruction.
This commit is contained in:
Mark Shannon
2023-02-15 12:21:40 +00:00
committed by GitHub
parent e8b6aaad2f
commit c7766245c1
2 changed files with 2 additions and 0 deletions

View File

@@ -727,6 +727,7 @@ dummy_func(
else {
assert(retval != NULL);
}
Py_DECREF(v);
}
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {

View File

@@ -934,6 +934,7 @@
else {
assert(retval != NULL);
}
Py_DECREF(v);
POKE(1, retval);
JUMPBY(1);
DISPATCH();