summaryrefslogtreecommitdiff
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-05-12 00:30:14 -0700
committerGitHub <noreply@github.com>2023-05-12 13:00:14 +0530
commit718b13277217e90232da5edf7ab3267e59189698 (patch)
treed8927e6fa9ea0110002b5d1b3f1bbbe0dd0f2ec7 /Python/bytecodes.c
parenta781484c8e9834538e5ee7b9e2e6bec7b679e033 (diff)
downloadcpython-git-718b13277217e90232da5edf7ab3267e59189698.tar.gz
gh-104413: Fix refleak when super attribute throws AttributeError (#104414)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index 118a0b5ed4..eee9147dd8 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -1598,8 +1598,8 @@ dummy_func(
STAT_INC(LOAD_SUPER_ATTR, hit);
PyObject *name = GETITEM(frame->f_code->co_names, oparg >> 2);
res = _PySuper_Lookup((PyTypeObject *)class, self, name, NULL);
- ERROR_IF(res == NULL, error);
DECREF_INPUTS();
+ ERROR_IF(res == NULL, error);
}
inst(LOAD_SUPER_ATTR_METHOD, (unused/1, global_super, class, self -- res2, res)) {