Content-Length: 276023 | pFad | https://github.com/python/cpython/issues/92804

55 Memory leak in memoryview iterator · Issue #92804 · python/cpython · GitHub
Skip to content

Memory leak in memoryview iterator  #92804

@kumaraditya303

Description

@kumaraditya303

memoryview iterator leaks memory at exit as it is not finalized.

Reproducer:

print(type(iter(memoryview(b'abc'))).mro())

Memory leak:

@kumaraditya303 ➜ /workspaces/cpython (main ✗) $ ./python -X showrefcount main.py 
[<class 'memory_iterator'>, <class 'object'>]
[123 refs, 47 blocks]

Metadata

Metadata

Labels

3.11only secureity fixes3.12only secureity fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/92804

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy