Skip to content

PyObject leaks in custom series and other places#2617

Merged
hoffstadt merged 2 commits intohoffstadt:masterfrom
v-ein:bugfix/2104-dict-setitem-leaks
Mar 23, 2026
Merged

PyObject leaks in custom series and other places#2617
hoffstadt merged 2 commits intohoffstadt:masterfrom
v-ein:bugfix/2104-dict-setitem-leaks

Conversation

@v-ein
Copy link
Copy Markdown
Collaborator

@v-ein v-ein commented Mar 10, 2026


name: Pull Request
about: Create a pull request to help us improve
title: PyObject leaks in custom series and other places
assignees: @hoffstadt


Description:
Closes #2104.

PyDict_SetItemString does not steal the reference to the value passed in, and we therefore must DECREF it on our own. This PR corrects all the PyDict_SetItemString calls and fixes the associated object leaks.

Concerning Areas:
None.

@hoffstadt hoffstadt merged commit d750f78 into hoffstadt:master Mar 23, 2026
4 checks passed
@v-ein v-ein deleted the bugfix/2104-dict-setitem-leaks branch March 23, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory Leak Issue with Custom Series

2 participants