Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb53869

Browse files
committed
gh-103879: Fix refleak in super specialization
1 parent1c0a9c5 commitfb53869

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎Python/specialize.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,10 @@ _Py_Specialize_LoadSuperAttr(PyObject *global_super, PyObject *class, PyObject *
544544
write_u32(cache->self_type_version,Py_TYPE(self)->tp_version_tag);
545545
write_obj(cache->method,res);// borrowed
546546
instr->op.code=LOAD_SUPER_ATTR_METHOD;
547+
Py_DECREF(res);
547548
gotosuccess;
548549
}
550+
Py_DECREF(res);
549551
SPECIALIZATION_FAIL(LOAD_SUPER_ATTR,SPEC_FAIL_SUPER_NOT_METHOD);
550552

551553
fail:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp