Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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]