joanvila/aioredlock

Memory leaks

vasili-ii opened this issue · 2 comments

Hello,
There is some memory leak in your code in algorithm.py: you don't remove item from _locks dictionary in def unlock.
So if we will use redlock_manager as a global object and will destroy it only on gracefull stop server the _locks dictionary will encrease more and more whithout cleaning it in unlock def as you do it with _watchdog dictionary.

please feel free to submit a pr.

I released this as part of v0.7.3