aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/bytecodes.c1
-rw-r--r--Python/generated_cases.c.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index be54e5f6f58..d5d5034cbfb 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -727,6 +727,7 @@ dummy_func(
else {
assert(retval != NULL);
}
+ Py_DECREF(v);
}
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index beb797cbd23..8b8a7161ad8 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -934,6 +934,7 @@
else {
assert(retval != NULL);
}
+ Py_DECREF(v);
POKE(1, retval);
JUMPBY(1);
DISPATCH();