pyatv
pyatv copied to clipboard
Companion leaks message context if transfer fails
Describe the bug
When sending an OPACK message and the message never gets a response (I.e. a timeout), that context data associated with that message is never freed, so it will remain in memory until connection is closed. Leak is to be interpreted as memory leak rather than information leak.
Error log
No response
How to reproduce the bug?
Hard to handcraft, easiest is to do it programmatically in a test.
What is expected behavior?
No leak
Operating System
Any
Python
3.10
pyatv
Any
Device
Any
Additional context
No