pyatv icon indicating copy to clipboard operation
pyatv copied to clipboard

Companion leaks message context if transfer fails

Open postlund opened this issue 3 years ago • 0 comments

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

postlund avatar Jul 23 '22 07:07 postlund