]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990)
authorJustin Applegate <70449145+Legoclones@users.noreply.github.com>
Tue, 19 Nov 2024 16:00:35 +0000 (11:00 -0500)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 16:00:35 +0000 (18:00 +0200)
commit29cbcbd73bbfd8c953c0b213fb33682c289934ff
tree9edeae99c346311b1eaff0089bbfb8060b0c8639
parentc5c9286804e38c95fe717f22ce1bf2f18eee5b17
gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990)

If PyObject_SetItem() fails in the `load_build()` function of _pickle.c, no DECREF for the `dict` variable.
Modules/_pickle.c