]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9091)
authorVictor Stinner <vstinner@redhat.com>
Fri, 7 Sep 2018 08:15:31 +0000 (10:15 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Sep 2018 08:15:31 +0000 (10:15 +0200)
commitbf2bd8f8a1d88de60c114de957f50fe2433e3937
treedc873ddf65e8e83967d8634378abcdea139b8e6a
parent9734024ec65311e33936faa83fb1cb249ef0de9d
bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9091)

When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".

(cherry picked from commit 8f735485acf2e35a75d2fa019feb8f905598c4e5)
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