Skip to content

Conversation

@philippedistributive
Copy link
Collaborator

@philippedistributive philippedistributive commented Jan 26, 2024

Proxy finalize only calls Py_DecRef on the proxied object if we are not shutting down: there is only reference left at shutdown and it will go away with the process space so there is no need to decref it

closes #220

Copy link
Collaborator

@zollqir zollqir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philippedistributive philippedistributive merged commit e66ea2f into main Jan 30, 2024
@philippedistributive philippedistributive deleted the philippe/ultimate-fix-220 branch January 30, 2024 14:46
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: Proxies backing PyObject reference does not get decremented in finalize

3 participants