Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Memory leak in code object lines and positions iterator #92955

Closed
Assignees
kumaraditya303
Labels
3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)
@kumaraditya303

Description

@kumaraditya303

The static typesLineIterator andPositionsIterator incodeobject.c are not finalized at exit leading to memory leak.

Reproducer:

deffunc()->None:passprint(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]

Metadata

Metadata

Labels

3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp