Skip to content

Address a potential memory leak when storing hooks instances#66

Merged
oprypin merged 1 commit intomasterfrom
hooksleak
Mar 28, 2026
Merged

Address a potential memory leak when storing hooks instances#66
oprypin merged 1 commit intomasterfrom
hooksleak

Conversation

@oprypin
Copy link
Copy Markdown
Member

@oprypin oprypin commented Mar 28, 2026

From Ruff:

Using the functools.lru_cache and functools.cache decorators on methods can lead to memory leaks, as the global cache will retain a reference to the instance, preventing it from being garbage collected.

From Ruff:

> Using the functools.lru_cache and functools.cache decorators on methods can lead to memory leaks, as the global cache will retain a reference to the instance, preventing it from being garbage collected.
@oprypin oprypin merged commit d89a59e into master Mar 28, 2026
23 checks passed
@oprypin oprypin deleted the hooksleak branch March 28, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant