]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-121652: Handle `allocate_weakref` returning NULL (GH-121653) (#121721)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Jul 2024 16:31:50 +0000 (18:31 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 16:31:50 +0000 (16:31 +0000)
commitf78e1aa1f0ed2226dcaa4631f66f1419dbb2e63b
tree1cb30a97374f987500f943e1e5df5ccebf34cfe6
parentf0c29a2d9f1df101efed8cda643bfff732c4e36b
[3.13] gh-121652: Handle `allocate_weakref` returning NULL (GH-121653) (#121721)

The `allocate_weakref` may return NULL when out of memory. We need to
handle that case and propagate the error.
(cherry picked from commit a640a605a8a1a3f73b98f948d0c2a7d42134f692)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Objects/weakrefobject.c