Skip to content

[3.12] gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH-121136)#121140

Merged
gaogaotiantian merged 1 commit intopython:3.12from
miss-islington:backport-92893fd-3.12
Jun 28, 2024
Merged

[3.12] gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH-121136)#121140
gaogaotiantian merged 1 commit intopython:3.12from
miss-islington:backport-92893fd-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 28, 2024

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 92893fd)

Co-authored-by: Justin Applegate 70449145+Legoclones@users.noreply.github.com

…pickle.c (pythonGH-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 92893fd)

Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants