bpo-25750: fix refcounts in type_getattro() (GH-6118) · python/cpython@f862f3a · GitHub
Skip to content

Commit f862f3a

Browse files
bpo-25750: fix refcounts in type_getattro() (GH-6118)
When calling tp_descr_get(self, obj, type), make sure that we own a strong reference to "self". (cherry picked from commit 8f73548) Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
1 parent 2d3f2dc commit f862f3a

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

Lines changed: 2 additions & 0 deletions

Objects/typeobject.c

Lines changed: 11 additions & 6 deletions

0 commit comments

Comments
 (0)