]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25750: fix refcounts in type_getattro() (GH-6118)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Sep 2018 07:50:35 +0000 (00:50 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Sep 2018 07:50:35 +0000 (00:50 -0700)
commitf862f3abaed59b83763707ae529f0fe487961ba9
treec07880917084809afff2099595c4d05b7a696f01
parent2d3f2dc9f8376415a31a6de260ccbe6a86f2816d
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 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