-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error