Paul Ganssle <p.gans...@gmail.com> added the comment:

There are two refleaks here. One is a reference leaking to the weak cache in 
`__init_subclass__` (one leak every time a subclass is created), and the other 
is that when `subclass.clear_cache()` is called, it sets `ZONEINFO_STRONG_CACHE 
= NULL`, thus causing a reference leak to the parent class's strong cache.

I'll send a PR to fix it shortly.

----------

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

Reply via email to