]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Jun 2024 23:17:51 +0000 (01:17 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2024 23:17:51 +0000 (16:17 -0700)
commit5c06b34665c4538f7142a71ecc4cc4a0d82d2653
tree555e545ee12880bfac2dfe4c4931dc79361ec2bb
parent3a420de986efef4bae039e2aad9feaa26505d24b
[3.12] gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH-121136) (#121140)

gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH-121136)

PyObject_GetAttr returns a new reference, but this reference is never decremented using Py_DECREF, so Py_DECREF calls to this referece are added
(cherry picked from commit 92893fd8dc803ed7cdde55d29d25f84ccb5e3ef0)

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