Skip to content

Conversation

@methane
Copy link
Member

@methane methane commented Jul 3, 2018

Without tp_clear, GC can't break cyclic reference.
It will cause memory leak when cyclic reference is
created intentionally.

https://bugs.python.org/issue33418

Without tp_clear, GC can't break cyclic reference.
It will cause memory leak when cyclic reference is
created intentionally.
@serhiy-storchaka
Copy link
Member

I have doubts about backporting this change. This can expose bugs when a ref cycle be broken at unexpected place.

@methane methane merged commit 3c45240 into python:master Jul 4, 2018
@methane methane deleted the func_clear branch February 28, 2019 12:04
Yhg1s pushed a commit that referenced this pull request Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants