Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

>From the duplicate (https://bugs.python.org/issue35881) :

After some hours of debugging, I have identified the (possible) cause of the 
majority of the refleaks. 

The type_comments created in ast.c with new_type_comment() never reaches 0 
reference counts. This **seems** to be because the cleanup for the stmt_ty 
elements where the type_comments are included never call DECREF on these 
elements when destroyed unless I am missing something fundamental.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35879>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to