]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func...
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Oct 2020 10:24:12 +0000 (03:24 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Oct 2020 10:24:12 +0000 (03:24 -0700)
commit9ede1b071bf5250ba5f2d04d7ba86a24c06d41a1
tree34f41ff0031a5be113242c60154f1e8acba777b7
parentb1ce0440bfe87e092ca5e2e57875fb7fc1129137
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.
(cherry picked from commit 350526105fa9b131d8b941ae753378b741dabb2f)

Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
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