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

Commit 8f73548

Browse files
jdemeyervstinner
authored andcommitted
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".
1 parent 593bb30 commit 8f73548

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)