You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Memory leak: Instance disposal doesn't clean up plugins or cached resources #9157
When Instance.dispose() is called, several resources are not properly cleaned up:
1. Plugins Not Disposed
Plugins may hold resources (connections, file handles, caches) that need cleanup, but there's no disposal hook in the Hooks interface:
interfaceHooks{// No dispose() method exists}
2. Cached Instances Not Disposed
The instance cache uses a standard Map without disposal hooks. When instances are evicted (due to memory pressure or explicit removal), their state is not properly cleaned up.
3. No Bootstrap Cleanup
When the process exits, plugins are not given a chance to clean up their resources.
These issues appear to be related components of a larger memory management problem (#5363). They may be addressed separately or as part of a broader effort to eliminate memory leaks.
Activity
github-actions commentedon Jan 17, 2026
This issue might be a duplicate or closely related to other memory leak issues in the repository. Please check:
These issues appear to be related components of a larger memory management problem (#5363). They may be addressed separately or as part of a broader effort to eliminate memory leaks.
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.