]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Nov 2024 18:19:39 +0000 (19:19 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 18:19:39 +0000 (20:19 +0200)
commitbb98a0afd8598ce80f0e6d3f768b128eab68f40a
tree9e9008f2a09f7190b848eb192996e1af98fc70c5
parent3fae84fe58d3da70ceca28f01647a38a590547b6
[3.13] gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990) (GH-127018)

If PyObject_SetItem() fails in the `load_build()` function of _pickle.c, no DECREF for the `dict` variable.
(cherry picked from commit 29cbcbd73bbfd8c953c0b213fb33682c289934ff)

Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
Modules/_pickle.c