-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Checklist
- This is a bug report and not a different kind of issue
- I have read the contribution guidelines
- I have checked the list of open and recently closed bug reports
- I have checked the commit log of the master branch
Streamlink version
Latest stable release
Description
Reproduce:
import streamlink
import gc
s = streamlink.Streamlink()
del s
gc.collect()
len([obj for obj in gc.get_objects() if isinstance(obj, streamlink.Streamlink)]) == 1
@lru_cache used on a class method causes a memory leak:
@lru_cache(maxsize=128)
def resolve_url(self, url: str, follow_redirect: bool = True) -> Tuple[Type[Plugin], str]:
created sessions are not released from the memory.
Debug log
-