]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9088)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Sep 2018 07:57:45 +0000 (00:57 -0700)
committerVictor Stinner <vstinner@redhat.com>
Fri, 7 Sep 2018 07:57:45 +0000 (09:57 +0200)
commit3ee07432f2e607cc6e7e6ea2d3695b672ceb1cea
tree0bd1a4dfc04054bacba67708fde1263a7a37c9a1
parent1a3eb125dc07a28a5af62446778ed7cca95ed3da
bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9088)

When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".
(cherry picked from commit 8f735485acf2e35a75d2fa019feb8f905598c4e5)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
Misc/NEWS.d/next/Core and Builtins/2018-03-14-21-42-17.bpo-25750.lxgkQz.rst [new file with mode: 0644]
Objects/typeobject.c