We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The static types LineIterator and PositionsIterator in codeobject.c are not finalized at exit leading to memory leak.
LineIterator
PositionsIterator
codeobject.c
Reproducer:
def func() -> None: pass print(type(func.__code__.co_positions()).mro()) print(type(func.__code__.co_lines()).mro())
Memory leak:
[<class 'positions_iterator'>, <class 'object'>] [<class 'line_iterator'>, <class 'object'>] [138 refs, 54 blocks]
The text was updated successfully, but these errors were encountered:
GH-92955: fix memory leak in code object lines and positions iterators (
c5f5f97
gh-92956)
kumaraditya303
Successfully merging a pull request may close this issue.
The static types
LineIterator
andPositionsIterator
incodeobject.c
are not finalized at exit leading to memory leak.Reproducer:
Memory leak:
The text was updated successfully, but these errors were encountered: