]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:18 +0000 (19:19 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 18:19:18 +0000 (20:19 +0200)
commit153221a1d050a74f1cfbb7af69232cb92bf505ba
tree10596e79f4302e77f51079076b2ce67c463e863f
parentcb98122df25d618bfdcaadedbfb23615b8dd362b
[3.12] gh-126991: Fix reference leak in loading pickle's opcode BUILD (GH-126990) (GH-127019)

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