diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-05-12 00:30:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 13:00:14 +0530 |
commit | 718b13277217e90232da5edf7ab3267e59189698 (patch) | |
tree | d8927e6fa9ea0110002b5d1b3f1bbbe0dd0f2ec7 /Python/bytecodes.c | |
parent | a781484c8e9834538e5ee7b9e2e6bec7b679e033 (diff) | |
download | cpython-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.c | 2 |
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)) { |