]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func...
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>
Thu, 29 Oct 2020 09:58:52 +0000 (11:58 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Oct 2020 09:58:52 +0000 (11:58 +0200)
commit350526105fa9b131d8b941ae753378b741dabb2f
tree6a26e4309c598bba977dc94b181ebd2e98458241
parentdf59273c7a384ea8c890fa8e9b80c92825df841c
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (GH-22953)

func_dealloc() does not handle partially-created objects. Best not to give it any.
Misc/NEWS.d/next/Core and Builtins/2020-10-27-21-34-05.bpo-42143.N6KXUO.rst [new file with mode: 0644]
Objects/funcobject.c