]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121652: Handle `allocate_weakref` returning NULL (#121653)
authorSam Gross <colesbury@gmail.com>
Sat, 13 Jul 2024 16:07:52 +0000 (12:07 -0400)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 16:07:52 +0000 (12:07 -0400)
commita640a605a8a1a3f73b98f948d0c2a7d42134f692
treea406c211e485c8240f2a6b62c03d3426927aa010
parenta1834742936a3a2164c25c14ecf4ae6a95288ca3
gh-121652: Handle `allocate_weakref` returning NULL (#121653)

The `allocate_weakref` may return NULL when out of memory. We need to
handle that case and propagate the error.
Objects/weakrefobject.c