Memory leak (from auto-updating?)
perry-mitchell opened this issue · 2 comments
perry-mitchell commented
perry-mitchell commented
The issue is the references between Vault
, Group
, Entry
and the underlying VaultItem
. They're all intertwined, and switching to an EventEmitter
listener in 5.3.0-0
didn't help (as there's no weak references).
The solution for now, I think, is to prevent the creation of Group/Entry references when doing a lookup. All Groups and Entries should be created instantly on the Vault, and returned when needed. This way we keep the growth down to only what's required, and we don't trust anything to be automatically garbage collected.
perry-mitchell commented